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: NetworkSocketAPI NetworkSocketAPI Nucleo-AWS-IoT-mbed
Diff: DnsQuery.h
- Branch:
- api-changes
- Revision:
- 7:cbe1ef566314
- Parent:
- 5:d85c1a7e0e9f
- Child:
- 9:16e5208cc4ef
--- a/DnsQuery.h Mon Feb 22 19:58:10 2016 -0600
+++ b/DnsQuery.h Tue Feb 23 01:24:53 2016 -0600
@@ -37,6 +37,11 @@
* @returns true if successful, or false otherwise.
*/
bool getHostByName(const char* hostname, char* ipaddress);
+ /** Checks if string is an IP address
+ * @param hostname String to check
+ * @return True if hostname is an IP addrss
+ */
+ bool isIP(const char* hostname) const;
/** Function gethostbyname implements the functionality to query a domain name server for an IP-Address of a given hostname.
* @param hostname : the hostname of interest as a string.
* @param ipaddress : a reference to a IPADDRESS_t object which will receive the resolved IP Address of the host in question.