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.
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: NetworkInterface.h
- Branch:
- api-changes
- Revision:
- 31:7f15b95f2a1d
- Parent:
- 30:3cc78f5db99d
- Child:
- 39:47138420ea42
diff -r 3cc78f5db99d -r 7f15b95f2a1d NetworkInterface.h
--- 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();
