Index: src/OFSCTPSocket.h ================================================================== --- src/OFSCTPSocket.h +++ src/OFSCTPSocket.h @@ -74,10 +74,13 @@ } /** * @brief Whether sending packets can be delayed. Setting this to NO sets * SCTP_NODELAY on the socket. + * + * @throw OFGetOptionFailedException The option could not be retrieved + * @throw OFSetOptionFailedException The option could not be set */ @property (nonatomic) bool canDelaySendingPackets; /** * @brief The delegate for asynchronous operations on the socket. @@ -91,10 +94,12 @@ /** * @brief Connect the OFSCTPSocket to the specified destination. * * @param host The host to connect to * @param port The port on the host to connect to + * @throw OFConnectIPSocketFailedException Connecting failed + * @throw OFAlreadyOpenException The socket is already connected or bound */ - (void)connectToHost: (OFString *)host port: (uint16_t)port; /** * @brief Asynchronously connect the OFSCTPSocket to the specified destination. @@ -147,10 +152,12 @@ * @param host The host to bind to. Use `@"0.0.0.0"` for IPv4 or `@"::"` for * IPv6 to bind to all. * @param port The port to bind to. If the port is 0, an unused port will be * chosen, which can be obtained using the return value. * @return The address the socket was bound to + * @throw OFBindIPSocketFailedException Binding failed + * @throw OFAlreadyOpenException The socket is already connected or bound */ - (OFSocketAddress)bindToHost: (OFString *)host port: (uint16_t)port; @end OF_ASSUME_NONNULL_END