@@ -198,18 +198,33 @@ - (void)asyncReadIntoBuffer: (void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector context: (id)context +{ + [self asyncReadIntoBuffer: buffer + length: length + runLoopMode: of_run_loop_mode_default + target: target + selector: selector + context: context]; +} + +- (void)asyncReadIntoBuffer: (void *)buffer + length: (size_t)length + runLoopMode: (of_run_loop_mode_t)runLoopMode + target: (id)target + selector: (SEL)selector + context: (id)context { OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer length: length - mode: of_run_loop_mode_default + mode: runLoopMode target: target selector: selector context: context]; } @@ -216,18 +231,33 @@ - (void)asyncReadIntoBuffer: (void *)buffer exactLength: (size_t)length target: (id)target selector: (SEL)selector context: (id)context +{ + [self asyncReadIntoBuffer: buffer + exactLength: length + runLoopMode: of_run_loop_mode_default + target: target + selector: selector + context: context]; +} + +- (void)asyncReadIntoBuffer: (void *)buffer + exactLength: (size_t)length + runLoopMode: (of_run_loop_mode_t)runLoopMode + target: (id)target + selector: (SEL)selector + context: (id)context { OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer exactLength: length - mode: of_run_loop_mode_default + mode: runLoopMode target: target selector: selector context: context]; } @@ -234,31 +264,53 @@ # ifdef OF_HAVE_BLOCKS - (void)asyncReadIntoBuffer: (void *)buffer length: (size_t)length block: (of_stream_async_read_block_t)block { + [self asyncReadIntoBuffer: buffer + length: length + runLoopMode: of_run_loop_mode_default + block: block]; +} + +- (void)asyncReadIntoBuffer: (void *)buffer + length: (size_t)length + runLoopMode: (of_run_loop_mode_t)runLoopMode + block: (of_stream_async_read_block_t)block +{ OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer length: length - mode: of_run_loop_mode_default + mode: runLoopMode block: block]; } - (void)asyncReadIntoBuffer: (void *)buffer exactLength: (size_t)length block: (of_stream_async_read_block_t)block { + [self asyncReadIntoBuffer: buffer + exactLength: length + runLoopMode: of_run_loop_mode_default + block: block]; +} + +- (void)asyncReadIntoBuffer: (void *)buffer + exactLength: (size_t)length + runLoopMode: (of_run_loop_mode_t)runLoopMode + block: (of_stream_async_read_block_t)block +{ OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncReadForStream: stream buffer: buffer exactLength: length - mode: of_run_loop_mode_default + mode: runLoopMode block: block]; } # endif #endif @@ -839,47 +891,71 @@ - (void)asyncReadLineWithTarget: (id)target selector: (SEL)selector context: (id)context { [self asyncReadLineWithEncoding: OF_STRING_ENCODING_UTF_8 + runLoopMode: of_run_loop_mode_default + target: target + selector: selector + context: context]; +} + +- (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding + target: (id)target + selector: (SEL)selector + context: (id)context +{ + [self asyncReadLineWithEncoding: encoding + runLoopMode: of_run_loop_mode_default target: target selector: selector context: context]; } - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding + runLoopMode: (of_run_loop_mode_t)runLoopMode target: (id)target selector: (SEL)selector context: (id)context { OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncReadLineForStream: stream encoding: encoding - mode: of_run_loop_mode_default + mode: runLoopMode target: target selector: selector context: context]; } # ifdef OF_HAVE_BLOCKS - (void)asyncReadLineWithBlock: (of_stream_async_read_line_block_t)block { [self asyncReadLineWithEncoding: OF_STRING_ENCODING_UTF_8 + runLoopMode: of_run_loop_mode_default + block: block]; +} + +- (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding + block: (of_stream_async_read_line_block_t)block +{ + [self asyncReadLineWithEncoding: encoding + runLoopMode: of_run_loop_mode_default block: block]; } - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding + runLoopMode: (of_run_loop_mode_t)runLoopMode block: (of_stream_async_read_line_block_t)block { OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncReadLineForStream: stream encoding: encoding - mode: of_run_loop_mode_default + mode: runLoopMode block: block]; } # endif #endif @@ -1131,18 +1207,33 @@ - (void)asyncWriteBuffer: (const void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector context: (id)context +{ + [self asyncWriteBuffer: buffer + length: length + runLoopMode: of_run_loop_mode_default + target: target + selector: selector + context: context]; +} + +- (void)asyncWriteBuffer: (const void *)buffer + length: (size_t)length + runLoopMode: (of_run_loop_mode_t)runLoopMode + target: (id)target + selector: (SEL)selector + context: (id)context { OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncWriteForStream: stream buffer: buffer length: length - mode: of_run_loop_mode_default + mode: runLoopMode target: target selector: selector context: context]; } @@ -1149,17 +1240,28 @@ # ifdef OF_HAVE_BLOCKS - (void)asyncWriteBuffer: (const void *)buffer length: (size_t)length block: (of_stream_async_write_block_t)block { + [self asyncWriteBuffer: buffer + length: length + runLoopMode: of_run_loop_mode_default + block: block]; +} + +- (void)asyncWriteBuffer: (const void *)buffer + length: (size_t)length + runLoopMode: (of_run_loop_mode_t)runLoopMode + block: (of_stream_async_write_block_t)block +{ OFStream *stream = (OFStream *)self; [OFRunLoop of_addAsyncWriteForStream: stream buffer: buffer length: length - mode: of_run_loop_mode_default + mode: runLoopMode block: block]; } # endif #endif