NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
95:b3c679f20d13
Parent:
94:644df37bb05b
Child:
97:68232387bc75
--- a/SocketAddress.cpp	Tue Apr 19 18:23:58 2016 -0500
+++ b/SocketAddress.cpp	Tue Apr 19 18:24:24 2016 -0500
@@ -98,10 +98,8 @@
         address_to_ipv4(_ip_bytes, host);
     } else {
         // DNS lookup
-        char addr[NSAPI_IP_SIZE];
-        int err = iface->gethostbyname(host, addr);
+        int err = iface->gethostbyname(this, host);
         if (!err) {
-            set_ip_address(addr);
             set_port(port);
         } else {
             _ip_version = NSAPI_IPv4;