@@ -136,16 +136,19 @@ * @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). + * @param context A context to pass when the target gets called */ - (void)asyncConnectToHost: (OFString*)host port: (uint16_t)port target: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (id)context; #ifdef OF_HAVE_BLOCKS /*! * @brief Asyncronously connect the OFTCPSocket to the specified destination. * @@ -196,14 +199,16 @@ * 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). + * @param context A context to pass when the target gets called */ - (void)asyncAcceptWithTarget: (id)target - selector: (SEL)selector; + selector: (SEL)selector + context: (id)context; #ifdef OF_HAVE_BLOCKS /*! * @brief Asyncronously accept an incoming connection. *