When a hostname has been resolved (or found to be non-existant), the resolver code calls a callback function called resolv_found() that must be implemented by the module that uses the resolver.
È£½ºÆ®³×ÀÓÀÌ ¸®½ºÆ®¿¡ ÀÖÀ»¶§(¶Ç´Â Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì), resolverÀÇ ÄÚµå´Â resolv_found()¶ó´Â ÄݹéÇÔ¼ö¸¦ È£ÃâÇÑ´Ù. µû¶ó¼ resulver¸¦ »ç¿ëÇÏ´Â ¸ðµâ¿¡¼ ÀÌ ÇÔ¼ö¿¡ ´ëÇÑ Ã³¸®¸¦ ±¸ÇöÇØ¾ß ÇÑ´Ù.
Files | |
file | resolv.c |
DNS host name to IP address resolver. DNSÈ£½ºÆ® À̸§À» IP·Î º¯È¯ | |
file | resolv.h |
DNS resolver code header file. DNS resolver Çì´õ ÆÄÀÏ | |
Functions | |
void | resolv_found (char *name, u16_t *ipaddr) |
Callback function which is called when a hostname is found. È£½ºÆ®³×ÀÓÀ» ã¾ÒÀ»¶§ È£ÃâµÇ´Â ÄݹéÇÔ¼ö. | |
void | resolv_conf (u16_t *dnsserver) |
Configure which DNS server to use for queries. DNS¼¹ö¸¦ ÁöÁ¤ÇÑ´Ù. | |
u16_t * | resolv_getserver (void) |
Obtain the currently configured DNS server. ÇöÀç ÁöÁ¤µÈ DNS¼¹öÀÇ IPÁÖ¼Ò¸¦ ¾ò¾î¿Â´Ù. | |
void | resolv_init (void) |
Initalize the resolver. ÃʱâÈ. | |
u16_t * | resolv_lookup (char *name) |
Look up a hostname in the array of known hostnames. ¾Ë·ÁÁø È£½ºÆ®³×ÀÓ ¹è¿¿¡¼ È£½ºÆ®³×ÀÓÀ» ã´Â´Ù. | |
void | resolv_query (char *name) |
Queues a name so that a question for the name will be sent out. ³×Æ®¿öÅ©¿¡¼ È£½ºÆ®³×ÀÓÀ» ã¾Æ¿Â´Ù. |
|
Configure which DNS server to use for queries.
|
Here is the call graph for this function:
|
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.
|