@@ -35,12 +35,13 @@ @class OFTCPSocket; @class OFString; #ifdef OF_HAVE_BLOCKS -typedef void (^of_tcpsocket_async_connect_block_t)(OFTCPSocket*); -typedef BOOL (^of_tcpsocket_async_accept_block_t)(OFTCPSocket*, OFTCPSocket*); +typedef void (^of_tcpsocket_async_connect_block_t)(OFTCPSocket*, OFException*); +typedef BOOL (^of_tcpsocket_async_accept_block_t)(OFTCPSocket*, OFTCPSocket*, + OFException*); #endif /** * \brief A class which provides functions to create and use TCP sockets. * @@ -135,11 +136,11 @@ * \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). + * void (OFTCPSocket *socket, OFException *exception). */ - (void)asyncConnectToHost: (OFString*)host port: (uint16_t)port target: (id)target selector: (SEL)selector; @@ -194,11 +195,12 @@ * \param target The target on which to execute the selector when a new * 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). + * BOOL (OFTCPSocket *socket, OFTCPSocket *acceptedSocket, + * OFException *exception). */ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector; #ifdef OF_HAVE_BLOCKS