@@ -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 @@ -42,24 +40,28 @@ /*! * @brief Creates a new, autoreleased listen failed exception. * * @param socket The socket which failed to listen * @param backLog The requested size of the back log + * @param errNo The errno of the error * @return A new, autoreleased listen failed exception */ + (instancetype)exceptionWithSocket: (id)socket - backLog: (int)backLog; + backLog: (int)backLog + errNo: (int)errNo; /*! * @brief Initializes an already allocated listen failed exception * * @param socket The socket which failed to listen * @param backLog The requested size of the back log + * @param errNo The errno of the error * @return An initialized listen failed exception */ - initWithSocket: (id)socket - backLog: (int)backLog; + backLog: (int)backLog + errNo: (int)errNo; /*! * @brief Returns the socket which failed to listen. * * @return The socket which failed to listen