@@ -20,23 +20,21 @@ #ifndef OF_HAVE_SOCKETS # error No sockets available! #endif -@class OFTCPSocket; - /*! * @brief An exception indicating that listening on the socket failed. */ @interface OFListenFailedException: OFException { - OFTCPSocket *_socket; + id _socket; int _backLog, _errNo; } #ifdef OF_HAVE_PROPERTIES -@property (readonly, retain) OFTCPSocket *socket; +@property (readonly, retain) id socket; @property (readonly) int backLog, errNo; #endif /*! * @brief Creates a new, autoreleased listen failed exception. @@ -43,29 +41,29 @@ * * @param socket The socket which failed to listen * @param backLog The requested size of the back log * @return A new, autoreleased listen failed exception */ -+ (instancetype)exceptionWithSocket: (OFTCPSocket*)socket ++ (instancetype)exceptionWithSocket: (id)socket backLog: (int)backLog; /*! * @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 * @return An initialized listen failed exception */ -- initWithSocket: (OFTCPSocket*)socket +- initWithSocket: (id)socket backLog: (int)backLog; /*! * @brief Returns the socket which failed to listen. * * @return The socket which failed to listen */ -- (OFTCPSocket*)socket; +- (id)socket; /*! * @brief Returns the requested back log. * * @return The requested back log