@@ -317,10 +317,11 @@ char *node; char *service; } /** + * \param obj The object which caused the exception * \param n The node for which translation was requested * \param s The service of the node for which translation was requested * \return A new address translation failed exception */ + newWithObject: (id)obj @@ -328,10 +329,11 @@ andService: (const char*)s; /** * Initializes an already allocated address translation failed exception. * + * \param obj The object which caused the exception * \param n The node for which translation was requested * \param s The service of the node for which translation was requested * \return An initialized address translation failed exception */ - initWithObject: (id)obj @@ -364,10 +366,11 @@ char *host; uint16_t port; } /** + * \param obj The object which caused the exception * \param h The host to which the connection failed * \param p The port on the host to which the connection failed * \return A new connection failed exception */ + newWithObject: (id)obj @@ -375,10 +378,11 @@ andPort: (uint16_t)p; /** * Initializes an already allocated connection failed exception. * + * \param obj The object which caused the exception * \param h The host to which the connection failed * \param p The port on the host to which the connection failed * \return An initialized connection failed exception */ - initWithObject: (id)obj @@ -412,10 +416,11 @@ uint16_t port; int family; } /** + * \param obj The object which caused the exception * \param h The host on which binding failed * \param p The port on which binding failed * \param f The family for which binnding failed * \return A new bind failed exception */ @@ -425,10 +430,11 @@ andFamily: (int)f; /** * Initializes an already allocated bind failed exception. * + * \param obj The object which caused the exception * \param h The host on which binding failed * \param p The port on which binding failed * \param f The family for which binnding failed * \return An initialized bind failed exception */ @@ -457,5 +463,52 @@ /** * \return The family for which binding failed */ - (int)family; @end + +/** + * An OFException indicating that listening on the socket failed. + */ +@interface OFListenFailedException: OFException +{ + int backlog; +} + +/** + * \param obj The object which caused the exception + * \param b The requested size of the back log + * \return A new listen failed exception + */ ++ newWithObject: (id)obj + andBackLog: (int)b; + +/** + * Initializes an already allocated listen failed exception + * + * \param obj The object which caused the exception + * \param b The requested size of the back log + * \return An initialized listen failed exception + */ +- initWithObject: (id)obj + andBackLog: (int)b; + +/** + * \return An error message for the exception as a C string. + */ +- (const char*)cString; + +/** + * \return The requested back log. + */ +- (int)backLog; +@end + +/** + * An OFException indicating that accepting a connection failed. + */ +@interface OFAcceptFailedException: OFException {} +/** + * \return An error message for the exception as a C string. + */ +- (const char*)cString; +@end