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.
Fork of DnsQuery by
Diff: DnsQuery.cpp
- Revision:
- 3:5705fdae6185
- Parent:
- 2:12d08f0f20cf
- Child:
- 4:3749346dcd59
diff -r 12d08f0f20cf -r 5705fdae6185 DnsQuery.cpp
--- a/DnsQuery.cpp Wed Aug 05 21:58:57 2015 +0000
+++ b/DnsQuery.cpp Thu Aug 27 14:33:07 2015 +0000
@@ -37,12 +37,13 @@
-DnsQuery::DnsQuery(SocketInterface *sock)
+DnsQuery::DnsQuery(SocketInterface *sock,const char* hostname, char* ipaddress)
{
socket = sock;
+ this->getHostByName(hostname, ipaddress);
}
-bool DnsQuery::gethostbyname(const char* hostname, char* resolvedIp)
+bool DnsQuery::getHostByName(const char* hostname, char* resolvedIp)
{
char * dnsIPs[] = {
"8.8.8.8",
