Main Page Data Structures File List Data Fields Globals Related Pages

# inet/dns.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions
int | gethostbyname (const char *dnsServerIP, const char *domainName, unsigned long *ttl, unsigned long *IP, char *dest)

## Function Documentation

int gethostbyname | ( | const char * | dnsServerIP,
|  | const char * | domainName,
|  | unsigned long * | ttl,
|  | unsigned long * | IP,
|  | char * | dest
| ) |

| Definition at line 226 of file dns.cpp. References AF_INET, API_ERROR, api_sleep(), BUFSIZE, closesocket(), DN_CLASS_IN, DN_TYPE_A, DN_TYPE_CNAME, dn_unpackrr(), DNS_PORT, htons(), ident, inet_addr(), InetToAscii(), MSG_BLOCKING, MSG_TIMEOUT, opensocket(), packdomain(), recvfrom(), dn_rr_struct::rrclass, dn_rr_struct::rrname, dn_rr_struct::rrrdata, dn_rr_struct::rrttl, dn_rr_struct::rrtype, in_addr::s_addr, sendto(), sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_port, and SOCK_DGRAM. Referenced by http_connect(), and http_get().