Christopher Haster / NetworkSocketAPI

Dependencies:   DnsQuery

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;
     }