@@ -132,16 +132,18 @@ * data has been received. If you want the next method in the * queue to handle the data received next, you need to return NO * from the method. * @param selector The selector to call on the target. The signature must be * BOOL (OFStream *stream, void *buffer, size_t size, - * OFException *exception). + * id context, OFException *exception). + * @param context A context to pass when the target gets called */ - (void)asyncReadIntoBuffer: (void*)buffer length: (size_t)length target: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (id)context; /*! * @brief Asyncronously reads exactly the specified length bytes from the * stream into a buffer. * @@ -159,16 +161,18 @@ * data has been received. If you want the next method in the * queue to handle the data received next, you need to return NO * from the method. * @param selector The selector to call on the target. The signature must be * BOOL (OFStream *stream, void *buffer, size_t size, - * OFException *exception). + * id context, OFException *exception). + * @param context A context to pass when the target gets called */ - (void)asyncReadIntoBuffer: (void*)buffer exactLength: (size_t)length target: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (id)context; #ifdef OF_HAVE_BLOCKS /*! * @brief Asyncronously reads at most size bytes from the stream into a * buffer. @@ -570,15 +574,17 @@ * been received. If the method returns YES, it will be called * again when the next line has been received. If you want the * next method in the queue to handle the next line, you need to * return NO from the method * @param selector The selector to call on the target. The signature must be - * BOOL (OFStream *stream, OFString *line, + * BOOL (OFStream *stream, OFString *line, id context, * OFException *exception). + * @param context A context to pass when the target gets called */ - (void)asyncReadLineWithTarget: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (id)context; /*! * @brief Asyncronously reads with the specified encoding until a newline, \\0, * end of stream or an exception occurs. * @@ -587,16 +593,18 @@ * been received. If the method returns YES, it will be called * again when the next line has been received. If you want the * next method in the queue to handle the next line, you need to * return NO from the method * @param selector The selector to call on the target. The signature must be - * BOOL (OFStream *stream, OFString *line, + * BOOL (OFStream *stream, OFString *line, id context, * OFException *exception). + * @param context A context to pass when the target gets called */ - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding target: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (id)context; #ifdef OF_HAVE_BLOCKS /*! * @brief Asyncronously reads until a newline, \\0, end of stream or an * exception occurs.