@@ -15,10 +15,11 @@ */ #import "OFObject.h" #import "OFStream.h" #import "OFStreamObserver.h" +#import "OFTCPSocket.h" @class OFSortedList; @class OFTimer; @class OFMutableDictionary; @@ -56,10 +57,12 @@ length: (size_t)length block: (of_stream_async_read_block_t)block; + (void)_addAsyncReadLineForStream: (OFStream*)stream encoding: (of_string_encoding_t)encoding block: (of_stream_async_read_line_block_t)block; ++ (void)_addAsyncAcceptForTCPSocket: (OFTCPSocket*)socket + block: (of_tcpsocket_async_accept_block_t)block; #endif /** * \brief Adds an OFTimer to the run loop. *