NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Revision 102:9002476b9136, committed 2016-04-19
- Comitter:
- Christopher Haster
- Date:
- Tue Apr 19 18:26:03 2016 -0500
- Parent:
- 101:9caa935c3baa
- Child:
- 103:37decbcb1108
- Commit message:
- Removed is_connected function
- Not supported by TCP/UDP protocols
- Uncommon and less useful with proper error handling
Changed in this revision
TCPSocket.cpp | Show annotated file Show diff for this revision Revisions of this file |
TCPSocket.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TCPSocket.cpp Tue Apr 19 18:25:52 2016 -0500 +++ b/TCPSocket.cpp Tue Apr 19 18:26:03 2016 -0500 @@ -50,11 +50,6 @@ 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;
--- a/TCPSocket.h Tue Apr 19 18:25:52 2016 -0500 +++ b/TCPSocket.h Tue Apr 19 18:26:03 2016 -0500 @@ -48,11 +48,6 @@ */ 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