Skip to content

Commit 0ae11b4

Browse files
committed
Removed is_connected function
- Not supported by TCP/UDP protocols - Uncommon and less useful with proper error handling
1 parent b9d9842 commit 0ae11b4

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

TCPSocket.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ int TCPSocket::connect(const char *host, uint16_t port)
5050
return connect(addr);
5151
}
5252

53-
bool TCPSocket::is_connected()
54-
{
55-
return _socket && _iface->socket_is_connected(_socket);
56-
}
57-
5853
int TCPSocket::send(const void *data, unsigned size)
5954
{
6055
mbed::Timer timer;

TCPSocket.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ class TCPSocket : public Socket {
4848
*/
4949
int connect(const SocketAddress &address);
5050

51-
/** Check if the socket is connected
52-
* @return true if connected, false otherwise
53-
*/
54-
bool is_connected();
55-
5651
/** Send data to the remote host
5752
* @param data The buffer to send to the host
5853
* @param size The length of the buffer to send

0 commit comments

Comments
 (0)