@@ -125,16 +125,18 @@ * @param host The host to connect to * @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, OFException *exception)`. + * `void (OFTCPSocket *socket, id context, + * OFException *exception)`. */ - (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port target: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (nullable id)context; # ifdef OF_HAVE_BLOCKS /*! * @brief Asynchronously connect the OFTCPSocket to the specified destination. * @@ -186,14 +188,15 @@ * connection has been accepted. The method returns whether the * 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, - * OFException *exception)`. + * id context, OFException *exception)`. */ - (void)asyncAcceptWithTarget: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (nullable id)context; #ifdef OF_HAVE_BLOCKS /*! * @brief Asynchronously accept an incoming connection. *