STM32Ethernet
Arduino Ethernet library for STM32 boards
Loading...
Searching...
No Matches
Dns.cpp File Reference

DNS client implementation for the Ethernet library. More...

#include "EthernetUdp.h"
#include "utility/stm32_eth.h"
#include "Dns.h"
#include <string.h>
#include "Arduino.h"
Include dependency graph for Dns.cpp:

Macros

#define SUCCESS   1
 
#define TIMED_OUT   -1
 
#define INVALID_SERVER   -2
 
#define TRUNCATED   -3
 
#define INVALID_RESPONSE   -4
 

Detailed Description

DNS client implementation for the Ethernet library.

begin() passes the DNS server to LwIP, inet_aton() parses dotted-decimal addresses, and getHostByName() returns numeric addresses directly or resolves host names through stm32_dns_gethostbyname().

Macro Definition Documentation

◆ INVALID_RESPONSE

#define INVALID_RESPONSE   -4

◆ INVALID_SERVER

#define INVALID_SERVER   -2

◆ SUCCESS

#define SUCCESS   1

◆ TIMED_OUT

#define TIMED_OUT   -1

◆ TRUNCATED

#define TRUNCATED   -3