Index: src/OFStreamObserver.h ================================================================== --- src/OFStreamObserver.h +++ src/OFStreamObserver.h @@ -58,11 +58,11 @@ @end /** * \brief A class that can observe multiple streams at once. * - * Note: Currently, it can only observe sockets on Win32. + * Note: Currently, Win32 can only observe sockets and not files! */ @interface OFStreamObserver: OFObject { OFMutableArray *readStreams; OFMutableArray *writeStreams; @@ -100,16 +100,20 @@ - (void)setDelegate: (id )delegate; /** * Adds a stream to observe for reading. * + * It is recommended that the stream you add it set to non-blocking mode. + * * \param stream The stream to observe for reading */ - (void)addStreamToObserveForReading: (OFStream*)stream; /** * Adds a stream to observe for writing. + * + * It is recommended that the stream you add it set to non-blocking mode. * * \param stream The stream to observe for writing */ - (void)addStreamToObserveForWriting: (OFStream*)stream; Index: src/OFTCPSocket.h ================================================================== --- src/OFTCPSocket.h +++ src/OFTCPSocket.h @@ -23,10 +23,13 @@ @class OFString; /** * \brief A class which provides functions to create and use TCP sockets. + * + * To connect to a server, create a socket and connect it. + * To create a server, create a socket, bind it and listen on it. */ @interface OFTCPSocket: OFStreamSocket { struct sockaddr *sockAddr; socklen_t sockAddrLen; @@ -43,11 +46,12 @@ /** * Bind socket on the specified node and service. * * \param service The service to bind - * \param node The node to bind to + * \param node The node to bind to. Use @"0.0.0.0" for IPv4 or @"::" for IPv6 + * to bind to all. * \param family The family to use (AF_INET for IPv4 or AF_INET6 for IPv6) */ - (void)bindService: (OFString*)service onNode: (OFString*)node withFamily: (int)family; Index: tests/OFXMLParserTests.m ================================================================== --- tests/OFXMLParserTests.m +++ tests/OFXMLParserTests.m @@ -319,13 +319,13 @@ const char *str = "" "<<>>>>\n" " \n" " \n" " \n" - " \n" + " \n" " \n" - " \n" " \n" " \n" " \n" " \n"