@@ -32,11 +32,11 @@ * @param socket The socket which connected * @param exception An exception which occurred while connecting the socket or * `nil` on success */ typedef void (^of_tcp_socket_async_connect_block_t)(OFTCPSocket *socket, - OFException *_Nullable exception); + id _Nullable exception); /*! * @brief A block which is called when the socket accepted a connection. * * @param socket The socket which accepted the connection @@ -45,11 +45,11 @@ * `nil` on success * @return A bool whether the same block should be used for the next incoming * connection */ typedef bool (^of_tcp_socket_async_accept_block_t)(OFTCPSocket *socket, - OFTCPSocket *acceptedSocket, OFException *_Nullable exception); + OFTCPSocket *acceptedSocket, id _Nullable exception); #endif /*! * @class OFTCPSocket OFTCPSocket.h ObjFW/OFTCPSocket.h * @@ -125,12 +125,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, id context, - * OFException *exception)`. + * `void (OFTCPSocket *socket, id context, id exception)`. */ - (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector @@ -188,11 +187,11 @@ * 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, - * id context, OFException *exception)`. + * id context, id exception)`. */ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector context: (nullable id)context;