WL865E4-P  36.07.001
m2mb_dns_client.h File Reference

This file contains the public APIs and structures of the Domain Name System (DNS) client module. More...

Go to the source code of this file.

Data Structures

struct  M2MB_HOST_NAME_TO_IP
 Structure to get IP address from host name. More...
 
enum  M2MB_DNS_SERVER_ID {
  M2MB_DNS_SERVER_PRIMARY,
  M2MB_DNS_SERVER_SECONDARY
}
 
typedef enum M2MB_DNS_SERVER_ID M2MB_DNS_SERVER_ID_E
 
typedef struct M2MB_HOST_NAME_TO_IP M2MB_HOST_NAME_TO_IP_T
 Structure to get IP address from host name. More...
 
M2MB_STATUS_T m2mb_dns_client_init (VOID)
 Initialize DNS client. More...
 
M2MB_STATUS_T m2mb_dns_client_is_started (VOID)
 Check the status of DNS client. More...
 
M2MB_STATUS_T m2mb_dns_client_deinit (VOID)
 De-initialize DNS client module. More...
 
M2MB_STATUS_T m2mb_dns_client_svr_add (UINT8 *ipAddr, M2MB_DNS_SERVER_ID_E serverID)
 Add a DNS server. More...
 
M2MB_STATUS_T m2mb_dns_client_svr_delete (M2MB_DNS_SERVER_ID_E serverID)
 Delete the DNS server details. More...
 
M2MB_HOST_NAME_TO_IP_Tm2mb_dns_client_get_host_by_name (UINT8 *name)
 Get IP address of host name. More...
 
M2MB_HOST_NAME_TO_IP_Tm2mb_dns_client_get_host_by_name2 (UINT8 *name, INT32 af)
 Get the IP address from the host name of the server. More...
 
M2MB_STATUS_T m2mb_dns_client_resolve_host (UINT8 *hostname, M2MB_IP46_ADDR_T *ipaddr)
 Resolve the URL details. More...
 
M2MB_STATUS_T m2mb_dns_client_get_server_list (M2MB_NWIF_DNS_SERVER_LIST_T *srv_list)
 Get the DNS server list. More...
 

Detailed Description

This file contains the public APIs and structures of the Domain Name System (DNS) client module.

we866e4/epl/inc/nwk/m2mb_dns_client.h

DNS client provides APIs to get the IP address from the HOST name.

User has to set the DNS server to get the host name resolved. This module stores the primary and secondary server IP address. User can provide server IP address.

Note
<Notes, dependencies mandatory> Dependencies: m2mb_types.h
Author
Sandeep Itha
Date
30/10/2017

Definition in file m2mb_dns_client.h.