WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: Socket/DNSClient.h
- Revision:
- 34:7d44648ec5f2
- Parent:
- 0:6f28332c466f
--- a/Socket/DNSClient.h Sat Oct 07 22:10:01 2017 +0200
+++ b/Socket/DNSClient.h Mon Oct 09 19:58:19 2017 +0200
@@ -8,7 +8,7 @@
DNSClient(const char* hostname = NULL);
DNSClient(Endpoint* pHost);
virtual ~DNSClient();
- bool lookup(const char* hostname = NULL);
+ bool lookup(const char* hostname = NULL, uint32_t dnsServer = 0);
uint32_t ip;
protected:
void poll();
@@ -19,7 +19,6 @@
uint8_t m_id[2];
Timer m_interval;
int m_retry;
- const char* m_hostname;
private:
enum MyNetDnsState
{
@@ -31,5 +30,7 @@
};
MyNetDnsState m_state;
UDPSocket *m_udp;
+ const char* m_hostname;
+ uint32_t m_dnsServer;
};
Helmut Tschemernjak
