@@ -20,35 +20,33 @@ #ifndef OF_HAVE_SOCKETS # error No sockets available! #endif -@class OFTCPSocket; - /*! * @brief An exception indicating the translation of an address failed. */ @interface OFAddressTranslationFailedException: OFException { - OFTCPSocket *_socket; - OFString *_host; - int _errNo; + id _socket; + OFString *_host; + int _errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *host; -@property (readonly, retain) OFTCPSocket *socket; +@property (readonly, retain) id socket; @property (readonly) int errNo; #endif /*! * @brief Creates a new, autoreleased address translation failed exception. * * @param socket The socket which could not translate the address * @return A new, autoreleased address translation failed exception */ -+ (instancetype)exceptionWithSocket: (OFTCPSocket*)socket; ++ (instancetype)exceptionWithSocket: (id)socket; /*! * @brief Creates a new, autoreleased address translation failed exception. * * @param host The host for which translation was requested @@ -62,19 +60,19 @@ * @param host The host for which translation was requested * @param socket The socket which could not translate the address * @return A new, autoreleased address translation failed exception */ + (instancetype)exceptionWithHost: (OFString*)host - socket: (OFTCPSocket*)socket; + socket: (id)socket; /*! * @brief Initializes an already allocated address translation failed exception. * * @param socket The socket which could not translate the address * @return An initialized address translation failed exception */ -- initWithSocket: (OFTCPSocket*)socket; +- initWithSocket: (id)socket; /*! * @brief Initializes an already allocated address translation failed exception. * * @param host The host for which translation was requested @@ -88,11 +86,11 @@ * @param host The host for which translation was requested * @param socket The socket which could not translate the address * @return An initialized address translation failed exception */ - initWithHost: (OFString*)host - socket: (OFTCPSocket*)socket; + socket: (id)socket; /*! * @brief Returns the host for which the address translation was requested. * * @return The host for which the address translation was requested @@ -102,14 +100,14 @@ /*! * @brief Returns the socket which could not translate the address. * * @return The socket which could not translate the address */ -- (OFTCPSocket*)socket; +- (id)socket; /*! * @brief Returns the errno from when the exception was created. * * @return The errno from when the exception was created */ - (int)errNo; @end