@@ -212,10 +212,13 @@ [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer length: length mode: runLoopMode +# ifdef OF_HAVE_BLOCKS + block: NULL +# endif delegate: _delegate]; } - (void)asyncReadIntoBuffer: (void *)buffer exactLength: (size_t)length @@ -234,10 +237,13 @@ [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer exactLength: length mode: runLoopMode +# ifdef OF_HAVE_BLOCKS + block: NULL +# endif delegate: _delegate]; } # ifdef OF_HAVE_BLOCKS - (void)asyncReadIntoBuffer: (void *)buffer @@ -260,11 +266,12 @@ [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer length: length mode: runLoopMode - block: block]; + block: block + delegate: nil]; } - (void)asyncReadIntoBuffer: (void *)buffer exactLength: (size_t)length block: (of_stream_async_read_block_t)block @@ -285,11 +292,12 @@ [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer exactLength: length mode: runLoopMode - block: block]; + block: block + delegate: nil]; } # endif #endif - (uint8_t)readInt8 @@ -885,10 +893,13 @@ (OFStream *)self; [OFRunLoop of_addAsyncReadLineForStream: stream encoding: encoding mode: runLoopMode +# ifdef OF_HAVE_BLOCKS + block: NULL +# endif delegate: _delegate]; } # ifdef OF_HAVE_BLOCKS - (void)asyncReadLineWithBlock: (of_stream_async_read_line_block_t)block @@ -914,11 +925,12 @@ (OFStream *)self; [OFRunLoop of_addAsyncReadLineForStream: stream encoding: encoding mode: runLoopMode - block: block]; + block: block + delegate: nil]; } # endif #endif - (OFString *)tryReadLine @@ -1179,10 +1191,13 @@ (OFStream *)self; [OFRunLoop of_addAsyncWriteForStream: stream data: data mode: runLoopMode +# ifdef OF_HAVE_BLOCKS + block: NULL +# endif delegate: _delegate]; } - (void)asyncWriteString: (OFString *)string { @@ -1208,10 +1223,13 @@ [OFRunLoop of_addAsyncWriteForStream: stream string: string encoding: encoding mode: runLoopMode +# ifdef OF_HAVE_BLOCKS + block: NULL +# endif delegate: _delegate]; } # ifdef OF_HAVE_BLOCKS - (void)asyncWriteData: (OFData *)data @@ -1230,11 +1248,12 @@ (OFStream *)self; [OFRunLoop of_addAsyncWriteForStream: stream data: data mode: runLoopMode - block: block]; + block: block + delegate: nil]; } - (void)asyncWriteString: (OFString *)string block: (of_stream_async_write_string_block_t)block { @@ -1264,11 +1283,12 @@ [OFRunLoop of_addAsyncWriteForStream: stream string: string encoding: encoding mode: runLoopMode - block: block]; + block: block + delegate: nil]; } # endif #endif - (void)writeInt8: (uint8_t)int8