Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

resolv.c File Reference


Detailed Description

DNS host name to IP address resolver.

Author:
Adam Dunkels <adam@dunkels.com>
This file implements a DNS host name to IP address resolver.

#include "tcpip.h"
#include "resolv.h"
#include <string.h>

Defines

#define MAX_RETRIES   8

Functions

 PROCESS_THREAD (resolv_process, ev, data)
void resolv_query (char *name)
 Queues a name so that a question for the name will be sent out.

u16_t * resolv_lookup (char *name)
 Look up a hostname in the array of known hostnames.

u16_t * resolv_getserver (void)
 Obtain the currently configured DNS server.

void resolv_conf (u16_t *dnsserver)
 Configure a DNS server.

void resolv_found (char *name, u16_t *ipaddr)

Variables

process_event_t resolv_event_found
 Event that is broadcasted when a DNS name has been resolved.


Generated on Wed Jul 6 01:19:03 2005 for Contiki/ESB by doxygen 1.3.6