Index: src/OFStream.h ================================================================== --- src/OFStream.h +++ src/OFStream.h @@ -185,10 +185,11 @@ * queue to handle the data received next, you need to return * false from the method. * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, void *buffer, size_t length, * id context, id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncReadIntoBuffer: (void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector @@ -216,10 +217,11 @@ * queue to handle the data received next, you need to return * false from the method. * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, void *buffer, size_t size, * id context, id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncReadIntoBuffer: (void *)buffer exactLength: (size_t)length target: (id)target selector: (SEL)selector @@ -640,10 +642,11 @@ * next method in the queue to handle the next line, you need to * return false from the method * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, OFString *line, id context, * id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncReadLineWithTarget: (id)target selector: (SEL)selector context: (nullable id)context; @@ -661,10 +664,11 @@ * next method in the queue to handle the next line, you need to * return false from the method * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, OFString *line, id context, * id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding target: (id)target selector: (SEL)selector context: (nullable id)context; @@ -817,10 +821,11 @@ * buffer and length can be specified while the callback stays * the same. * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, const void *buffer, * size_t bytesWritten, id context, id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncWriteBuffer: (const void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector Index: src/OFTCPSocket.h ================================================================== --- src/OFTCPSocket.h +++ src/OFTCPSocket.h @@ -126,10 +126,11 @@ * @param port The port on the host to connect to * @param target The target on which to call the selector once the connection * has been established * @param selector The selector to call on the target. The signature must be * `void (OFTCPSocket *socket, id context, id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector @@ -188,10 +189,11 @@ * next incoming connection should be accepted by the specified * block as well. * @param selector The selector to call on the target. The signature must be * `bool (OFTCPSocket *socket, OFTCPSocket *acceptedSocket, * id context, id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector context: (nullable id)context; Index: src/OFUDPSocket.h ================================================================== --- src/OFUDPSocket.h +++ src/OFUDPSocket.h @@ -124,10 +124,11 @@ * @param target The target on which to call the selector once the host has been * resolved * @param selector The selector to call on the target. The signature must be * `void (OFString *host, uint16_t port, * of_udp_socket_address_t address, id context, id exception)`. + * @param context A context object to pass along to the target */ + (void)asyncResolveAddressForHost: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector @@ -203,10 +204,11 @@ * method in the queue to handle the datagram received next, you * need to return false from the method. * @param selector The selector to call on the target. The signature must be * `bool (OFUDPSocket *socket, void *buffer, size_t length, * of_udp_socket_address_t, id context, id exception)`. + * @param context A context object to pass along to the target */ - (void)asyncReceiveIntoBuffer: (void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector