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.
Diff: TCPSocket.cpp
- Revision:
- 24:656011e49d9f
- Parent:
- 20:dd5f19874adf
- Child:
- 30:9002476b9136
diff -r b3c679f20d13 -r 656011e49d9f TCPSocket.cpp --- a/TCPSocket.cpp Tue Apr 19 18:24:24 2016 -0500 +++ b/TCPSocket.cpp Tue Apr 19 18:24:34 2016 -0500 @@ -43,7 +43,7 @@ int TCPSocket::connect(const char *host, uint16_t port) { SocketAddress addr(_iface, host, port); - if (!addr.get_ip_address()) { + if (!addr) { return NSAPI_ERROR_DNS_FAILURE; }