NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
31:7f15b95f2a1d
Parent:
30:3cc78f5db99d
Child:
39:47138420ea42
--- a/NetworkInterface.h	Mon Feb 22 21:03:38 2016 +0000
+++ b/NetworkInterface.h	Mon Feb 22 22:51:03 2016 +0000
@@ -72,9 +72,16 @@
     virtual const char *getMACAddress() = 0;
 
     /** Get the current status of the interface
-        @return true if connected
+     *  @return true if connected
      */
     virtual bool isConnected(void);
+    
+    /** Looks up the specified host's IP address
+     *  @param name URL of host
+     *  @param ip Buffer to hold IP address, must be at least SOCK_IP_SIZE
+     *  @return 0 on success
+     */
+    int32_t getHostByName(const char *name, char *ip);
 
 protected:
     NetworkInterface();