WL865E4-P  36.07.001
m2mb_dns_client.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
29 #ifndef M2MB_DNS_CLIENT_API_H
30 #define M2MB_DNS_CLIENT_API_H
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
45 /*-----------------------------------------------------------------------------------------------*/
46 
52 /* Global declarations ==========================================================================*/
53 
54 /* MACROs to set DNS server details */
55 typedef enum M2MB_DNS_SERVER_ID
56 {
60 
61 /* Global typedefs ==============================================================================*/
70 typedef struct M2MB_HOST_NAME_TO_IP
71 {
78 
79 
80 /* Global functions =========================================================*/
81 /*---------------------------------------------------------------------------*/
119 /*---------------------------------------------------------------------------*/
121 
122 /*---------------------------------------------------------------------------*/
158 /*---------------------------------------------------------------------------*/
160 
161 /*---------------------------------------------------------------------------*/
211 /*---------------------------------------------------------------------------*/
213 
214 /*---------------------------------------------------------------------------*/
272 /*-----------------------------------------------------------------------------------------------*/
274 
275 /*-----------------------------------------------------------------------------------------------*/
341 /*-----------------------------------------------------------------------------------------------*/
343 
344 /*-----------------------------------------------------------------------------------------------*/
416 /*-----------------------------------------------------------------------------------------------*/
418 
419 /*-----------------------------------------------------------------------------------------------*/
495 /*-----------------------------------------------------------------------------------------------*/
497 
498 /*---------------------------------------------------------------------------*/
568 /*-----------------------------------------------------------------------------------------------*/
570 
571 /*---------------------------------------------------------------------------*/
635 /*-----------------------------------------------------------------------------------------------*/
637 
641 /*-----------------------------------------------------------------------------------------------*/
642 
643 #ifdef __cplusplus
644 }
645 #endif
646 #endif
unsigned char UINT8
Definition: m2mb_types.h:83
M2MB_HOST_NAME_TO_IP_T * m2mb_dns_client_get_host_by_name2(UINT8 *name, INT32 af)
Get the IP address from the host name of the server.
enum M2MB_DNS_SERVER_ID M2MB_DNS_SERVER_ID_E
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:95
M2MB_STATUS_T m2mb_dns_client_get_server_list(M2MB_NWIF_DNS_SERVER_LIST_T *srv_list)
Get the DNS server list.
M2MB_STATUS_T m2mb_dns_client_deinit(VOID)
De-initialize DNS client module.
struct M2MB_HOST_NAME_TO_IP M2MB_HOST_NAME_TO_IP_T
Structure to get IP address from host name.
M2MB_HOST_NAME_TO_IP_T * m2mb_dns_client_get_host_by_name(UINT8 *name)
Get IP address of host name.
M2MB_DNS_SERVER_ID
M2MB_STATUS_T m2mb_dns_client_init(VOID)
Initialize DNS client.
M2MB_STATUS_T m2mb_dns_client_svr_delete(M2MB_DNS_SERVER_ID_E serverID)
Delete the DNS server details.
M2MB_STATUS_T m2mb_dns_client_svr_add(UINT8 *ipAddr, M2MB_DNS_SERVER_ID_E serverID)
Add a DNS server.
Structure to get IP address from host name.
void VOID
Definition: m2mb_types.h:72
Socket IPv4/IPv6 Internet address union.
Definition: m2mb_socket.h:347
M2MB_STATUS_T m2mb_dns_client_resolve_host(UINT8 *hostname, M2MB_IP46_ADDR_T *ipaddr)
Resolve the URL details.
signed int INT32
Definition: m2mb_types.h:80
For use with m2mb_nwif_cfgget() to get IP addresses of DNS servers.
Definition: m2mb_nwif.h:136
M2MB_STATUS_T m2mb_dns_client_is_started(VOID)
Check the status of DNS client.