From 0ae11b49e83d57e77fada6949d2fdb9e92f10405 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 19 Apr 2016 15:47:54 -0500 Subject: [PATCH] Removed is_connected function - Not supported by TCP/UDP protocols - Uncommon and less useful with proper error handling --- TCPSocket.cpp | 5 ----- TCPSocket.h | 5 ----- 2 files changed, 10 deletions(-) diff --git a/TCPSocket.cpp b/TCPSocket.cpp index a5225ce56c..a837f29fe2 100644 --- a/TCPSocket.cpp +++ b/TCPSocket.cpp @@ -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; diff --git a/TCPSocket.h b/TCPSocket.h index c5a7e97c20..c6714feea9 100644 --- a/TCPSocket.h +++ b/TCPSocket.h @@ -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