Removed is_connected function

- Not supported by TCP/UDP protocols
- Uncommon and less useful with proper error handling
pull/2216/head^2
Christopher Haster 2016-04-19 15:47:54 -05:00
parent b9d9842846
commit 0ae11b49e8
2 changed files with 0 additions and 10 deletions

View File

@ -50,11 +50,6 @@ int TCPSocket::connect(const char *host, uint16_t port)
return connect(addr);
}
bool TCPSocket::is_connected()
{
return _socket && _iface->socket_is_connected(_socket);
}
int TCPSocket::send(const void *data, unsigned size)
{
mbed::Timer timer;

View File

@ -48,11 +48,6 @@ public:
*/
int connect(const SocketAddress &address);
/** Check if the socket is connected
* @return true if connected, false otherwise
*/
bool is_connected();
/** Send data to the remote host
* @param data The buffer to send to the host
* @param size The length of the buffer to send