The event resolv_event_found is posted when a hostname has been resolved. It is up to the receiving process to determine if the correct hostname has been found by calling the resolv_lookup() function with the hostname.
Files | |
| file | resolv.c |
| DNS host name to IP address resolver. | |
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. | |
|
|
For internal use only. The maximum number of retries when asking for a name. |
|
||||||||||||||||
|
For internal use only. The main UDP function. |
|
|
Configure a DNS server.
|
|
||||||||||||
|
For internal use only. Callback function which is called when a hostname is found. |
|
|
Obtain the currently configured DNS server.
|
|
|
Look up a hostname in the array of known hostnames.
|
|
|
Queues a name so that a question for the name will be sent out.
|
1.3.6