@@ -78,10 +78,13 @@ /** * @brief The remote address. * * @note This only works for accepted sockets! + * + * @throw OFNotOpenException The socket is not open + * @throw OFInvalidArgumentException The socket has no remote address */ @property (readonly, nonatomic) const OFSocketAddress *remoteAddress; /** * @brief The delegate for asynchronous operations on the socket. @@ -101,22 +104,29 @@ /** * @brief Listen on the socket. * * @param backlog Maximum length for the queue of pending connections. + * @throw OFListenFailedException Listening failed + * @throw OFNotOpenException The socket is not open */ - (void)listenWithBacklog: (int)backlog; /** * @brief Listen on the socket. + * + * @throw OFListenFailedException Listening failed + * @throw OFNotOpenException The socket is not open */ - (void)listen; /** * @brief Accept an incoming connection. * * @return An autoreleased OFStreamSocket for the accepted connection. + * @throw OFAcceptFailedException Accepting failed + * @throw OFNotOpenException The socket is not open */ - (instancetype)accept; /** * @brief Asynchronously accept an incoming connection.