This is Library using WIZnet Hardware TCP/IP chip, W5500 and WIZnet TCP/IP Offload Engine, W7500.
Dependents: HTTP_SDcard_file_server_WIZwiki-W7500 SSD1306_smart_watch TCPEchoServer-WIZwiki-W7500 httpServer-WIZwiki-W7500 ... more
Fork of WIZnetInterface by
This is WIZnet Ethernet Interface using Hardware TCP/IP chip, W5500 and TCP/IP Offload Engine, W7500.
[Users » embeddist » Code » WIZnetInterface](https://developer.mbed.org/users/embeddist/code/WIZnetInterface/) -> WIZnetInterface Lib will be released on [Team WIZnet](https://developer.mbed.org/teams/WIZnet/)
- WIZwiki_W7500 : /platforms/WIZwiki-W7500/
- WIZwiki_W7500P : /platforms/WIZwiki-W7500P/
- WIZwiki_W7500ECO : /platforms/WIZwiki-W7500ECO/
- W5500 Ethernet Shield : /components/W5500-Ethernet-Kit-for-IoT/
This library is an Ethernet Interface library port-based on [EthernetInterface](https://developer.mbed.org/users/mbed_official/code/EthernetInterface/docs/tip/).
For more detail, visit http://embeddist.blogspot.kr/2015/06/wiznetinterface-for-armmbed.html
Socket/DNSClient.h
- Committer:
- kaizen
- Date:
- 2015-07-22
- Revision:
- 20:bda61525ac71
- Parent:
- 0:6f28332c466f
File content as of revision 20:bda61525ac71:
// DNSClient.h 2013/4/5 #pragma once #include "UDPSocket.h" class DNSClient { public: DNSClient(const char* hostname = NULL); DNSClient(Endpoint* pHost); virtual ~DNSClient(); bool lookup(const char* hostname = NULL); uint32_t ip; protected: void poll(); void callback(); int response(uint8_t buf[], int size); int query(uint8_t buf[], int size, const char* hostname); void resolve(const char* hostname); uint8_t m_id[2]; Timer m_interval; int m_retry; const char* m_hostname; private: enum MyNetDnsState { MYNETDNS_START, MYNETDNS_PROCESSING, //Req has not completed MYNETDNS_NOTFOUND, MYNETDNS_ERROR, MYNETDNS_OK }; MyNetDnsState m_state; UDPSocket *m_udp; };