STM32Ethernet
Arduino Ethernet library for STM32 boards
Loading...
Searching...
No Matches
Dns.h
Go to the documentation of this file.
1
8// Arduino DNS client for WizNet5100-based Ethernet shield
9// (c) Copyright 2009-2010 MCQN Ltd.
10// Released under Apache License, version 2.0
11
12#ifndef DNSClient_h
13#define DNSClient_h
14
15#include <EthernetUdp.h>
16
17class DNSClient {
18 public:
27 void begin(const IPAddress &aDNSServer);
28
38 int inet_aton(const char *address, IPAddress &result);
39
52 int getHostByName(const char *aHostname, IPAddress &aResult);
53
54 protected:
62 uint16_t BuildRequest(const char *aName);
71 uint16_t ProcessResponse(uint16_t aTimeout, IPAddress &aAddress);
72
73 IPAddress iDNSServer;
74};
75
76#endif
UDP class of the Ethernet library.
Definition Dns.h:17
uint16_t ProcessResponse(uint16_t aTimeout, IPAddress &aAddress)
Deprecated. Does nothing.
Definition Dns.cpp:100
int inet_aton(const char *address, IPAddress &result)
Converts a dotted-decimal IP address string to an IP address.
Definition Dns.cpp:34
uint16_t BuildRequest(const char *aName)
Deprecated. Does nothing.
Definition Dns.cpp:94
void begin(const IPAddress &aDNSServer)
Sets the DNS server used for host name lookups.
Definition Dns.cpp:27
int getHostByName(const char *aHostname, IPAddress &aResult)
Resolves a host name to an IP address.
Definition Dns.cpp:72
IPAddress iDNSServer
Definition Dns.h:73