NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
96:656011e49d9f
Parent:
92:dd5f19874adf
Child:
102:9002476b9136
--- 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;
     }