This is the Interface library for WIZnet W5500 chip which forked of EthernetInterfaceW5500, WIZnetInterface and WIZ550ioInterface. This library has simple name as "W5500Interface". and can be used for Wiz550io users also.
Dependents: EvrythngApi Websocket_Ethernet_HelloWorld_W5500 Websocket_Ethernet_W5500 CurrentWeatherData_W5500 ... more
DNSClient.h
00001 // DNSClient.h 2013/4/5 00002 #pragma once 00003 00004 #include "UDPSocket.h" 00005 00006 class DNSClient { 00007 public: 00008 DNSClient(const char* hostname = NULL); 00009 DNSClient(Endpoint* pHost); 00010 virtual ~DNSClient(); 00011 bool lookup(const char* hostname = NULL); 00012 uint32_t ip; 00013 protected: 00014 void poll(); 00015 void callback(); 00016 int response(uint8_t buf[], int size); 00017 int query(uint8_t buf[], int size, const char* hostname); 00018 void resolve(const char* hostname); 00019 uint8_t m_id[2]; 00020 Timer m_interval; 00021 int m_retry; 00022 const char* m_hostname; 00023 private: 00024 enum MyNetDnsState 00025 { 00026 MYNETDNS_START, 00027 MYNETDNS_PROCESSING, //Req has not completed 00028 MYNETDNS_NOTFOUND, 00029 MYNETDNS_ERROR, 00030 MYNETDNS_OK 00031 }; 00032 MyNetDnsState m_state; 00033 UDPSocket *m_udp; 00034 };
Generated on Thu Jul 14 2022 02:02:03 by 1.7.2