dns_api_msg Struct Reference

#include <lwip/src/include/lwip/api_msg.h>


Data Fields

const char * name
struct ip_addr * addr
sys_sem_t sem
err_t * err


Detailed Description

As do_gethostbyname requires more arguments but doesn't require a netconn, it has its own struct (to avoid struct api_msg getting bigger than necessary). do_gethostbyname must be called using tcpip_callback instead of tcpip_apimsg (see netconn_gethostbyname).

Field Documentation

const char* dns_api_msg::name

Hostname to query or dotted IP address string

struct ip_addr* dns_api_msg::addr [read]

Rhe resolved address is stored here

sys_sem_t dns_api_msg::sem

This semaphore is posted when the name is resolved, the application thread should wait on it.

err_t* dns_api_msg::err

Errors are given back here


The documentation for this struct was generated from the following file:
Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4