@@ -65,11 +65,10 @@ socklen_t _addressLength; OFString *_SOCKS5Host; uint16_t _SOCKS5Port; #ifdef OF_WII uint16_t _port; - bool _keepAliveEnabled, _TCPNoDelayEnabled; #endif } /*! * The host to use as a SOCKS5 proxy. @@ -219,37 +218,49 @@ * * @return Whether the socket is a listening socket */ - (bool)isListening; +#if !defined(OF_WII) && !defined(OF_NINTENDO_3DS) /*! * @brief Enable or disable keep alive for the connection. + * + * @warning This is not available on the Wii or Nintendo 3DS! * * @param enabled Whether to enable or disable keep alives for the connection */ - (void)setKeepAliveEnabled: (bool)enabled; /*! * @brief Returns whether keep alive is enabled for the connection. * + * @warning This is not available on the Wii or Nintendo 3DS! + * * @return Whether keep alives are enabled for the connection */ - (bool)isKeepAliveEnabled; +#endif +#ifndef OF_WII /*! * @brief Enable or disable TCP_NODELAY for the connection. + * + * @warning This is not available on the Wii! * * @param enabled Whether to enable or disable TCP_NODELAY for the connection */ - (void)setTCPNoDelayEnabled: (bool)enabled; /*! * @brief Returns whether TCP_NODELAY is enabled for the connection. + * + * @warning This is not available on the Wii! * * @return Whether TCP_NODELAY is enabled for the connection */ - (bool)isTCPNoDelayEnabled; +#endif @end #ifdef __cplusplus extern "C" { #endif