@@ -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 @@ -47,27 +45,31 @@ * @brief Creates a new, autoreleased bind failed exception. * * @param host The host on which binding failed * @param port The port on which binding failed * @param socket The socket which could not be bound + * @param errNo The errno of the error * @return A new, autoreleased bind failed exception */ + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port - socket: (id)socket; + socket: (id)socket + errNo: (int)errNo; /*! * @brief Initializes an already allocated bind failed exception. * * @param host The host on which binding failed * @param port The port on which binding failed * @param socket The socket which could not be bound + * @param errNo The errno of the error * @return An initialized bind failed exception */ - initWithHost: (OFString*)host port: (uint16_t)port - socket: (id)socket; + socket: (id)socket + errNo: (int)errNo; /*! * @brief Returns the host on which binding failed. * * @return The host on which binding failed