Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 30:9002476b9136, committed 2016-04-19
- Comitter:
- Christopher Haster
- Date:
- Tue Apr 19 18:26:03 2016 -0500
- Parent:
- 29:9caa935c3baa
- Child:
- 31: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