#include "net\compiler.h"
#include "net\stacktsk.h"
Functions | |
BOOL | DNSIsResolved (IP_ADDR *HostIP) |
void | DNSResolve (BYTE *HostName) |
For a detailed description, see the DNS section of this document - in [Modules] [TCP/IP Stack] [TCP/IP User Protocols].
//********************************************************************* //-------------------- DNS Configuration -------------------- //********************************************************************* // DNS Port. If not defined in "projdefs.h" file, defaults to 53 #define DNS_PORT 53 // DNS Timeout. If not defined in "projdefs.h" file, defaults to 500ms #define DNS_TIMEOUT ((TICK)TICK_SECOND * (TICK)2)
Call DNSIsResolved() until the host is resolved. You cannot start two DNS resolution proceedures concurrently. You must not modify *Hostname until DNSIsResolved() returns TRUE.
HostIP | 4 byte IP address |
void DNSResolve | ( | BYTE * | HostName | ) |
Call DNSIsResolved() until the host is resolved. A UDP socket must be available before this function is called. It is freed at the end of the resolution. MAX_UDP_SOCKETS may need to be increased if other modules use UDP sockets. You must not modify Hostname until DNSIsResolved() returns TRUE.
HostName | Null terminated string specifying the host address to resolve to an IP address. |