@@ -12,12 +12,10 @@ * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ -#include - #import "OFException.h" #ifndef OF_HAVE_SOCKETS # error No sockets available! #endif @@ -41,21 +39,25 @@ /*! * @brief Creates a new, autoreleased accept failed exception. * * @param socket The socket which could not accept a connection + * @param errNo The errno for the error * @return A new, autoreleased accept failed exception */ -+ (instancetype)exceptionWithSocket: (id)socket; ++ (instancetype)exceptionWithSocket: (id)socket + errNo: (int)errNo; /*! * @brief Initializes an already allocated accept failed exception. * * @param socket The socket which could not accept a connection + * @param errNo The errno for the error * @return An initialized accept failed exception */ -- initWithSocket: (id)socket; +- initWithSocket: (id)socket + errNo: (int)errNo; /*! * @brief Returns the socket which could not accept a connection. * * @return The socket which could not accept a connection