SAMV71 Xplained Ultra Software Package 1.3

resolv.h File Reference

#include "uipopt.h"

Go to the source code of this file.

Defines

#define UIP_UDP_APPCALL   resolv_appcall

Typedefs

Appication specific configurations

An uIP application is implemented using a single application function that is called by uIP whenever a TCP/IP event occurs. The name of this function must be registered with uIP at compile time using the UIP_APPCALL definition.

uIP applications can store the application state within the uip_conn structure by specifying the type of the application structure by typedef:ing the type uip_tcp_appstate_t and uip_udp_appstate_t.

The file containing the definitions must be included in the uipopt.h file.

The following example illustrates how this can look.

void httpd_appcall(void);
#define UIP_APPCALL     httpd_appcall

struct httpd_state {
  u8_t state;
  u16_t count;
  char *dataptr;
  char *script;
};
typedef struct httpd_state uip_tcp_appstate_t
typedef int uip_udp_appstate_t

Functions

void resolv_appcall (void)
void resolv_found (char *name, u16_t *ipaddr)
void resolv_conf (u16_t *dnsserver)
u16_tresolv_getserver (void)
void resolv_init (void)
u16_tresolv_lookup (char *name)
void resolv_query (char *name)

Detailed Description

DNS resolver code header file.

Author:
Adam Dunkels <adam@dunkels.com>

Definition in file resolv.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines