WE310F5  39.00.000
m2mb_dns_server.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
30 #ifndef M2MB_DNS_SERVER_API_H
31 #define M2MB_DNS_SERVER_API_H
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
47 /*-----------------------------------------------------------------------------------------------*/
48 
49 
55 /* Global declarations ==========================================================================*/
56 
57 #define M2MB_DNS_MAX_HOSTNAME_LEN 128
60 /* Global typedefs ==============================================================================*/
61 
69 typedef struct M2MB_DNS_SERVER_HOST
70 {
76 
77 
78 
79 /* Global functions =========================================================*/
80 /*---------------------------------------------------------------------------*/
118 /*---------------------------------------------------------------------------*/
120 
121 /*---------------------------------------------------------------------------*/
168 /*---------------------------------------------------------------------------*/
170 
171 /*---------------------------------------------------------------------------*/
235 /*-----------------------------------------------------------------------------------------------*/
236 M2MB_STATUS_T m2mb_dns_server_add_host( const char *hostName, UINT32 ip4addr,
237  M2MB_SOCKET_BSD_IPV6_ADDR_T *ip6addr, UINT32 ttl );
238 
239 /*---------------------------------------------------------------------------*/
307 /*-----------------------------------------------------------------------------------------------*/
308 M2MB_STATUS_T m2mb_dns_server_delete_host( const char *hostName );
309 
310 /*-----------------------------------------------------------------------------------------------*/
347 /*-----------------------------------------------------------------------------------------------*/
349 
353 /*-----------------------------------------------------------------------------------------------*/
354 
355 #ifdef __cplusplus
356 }
357 #endif
358 #endif
unsigned char UINT8
Definition: m2mb_types.h:86
UINT8 hostName[M2MB_DNS_MAX_HOSTNAME_LEN]
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
M2MB_SOCKET_BSD_IPV6_ADDR_T addr6
M2MB_STATUS_T m2mb_dns_server_deinit(VOID)
DNS server de-initialization.
struct M2MB_DNS_SERVER_HOST M2MB_DNS_SERVER_HOST_T
Structure of HOST in the DNS server.
M2MB_STATUS_T m2mb_dns_server_is_started(VOID)
Check the running status of DNS server.
Structure for storing IPV6.
Definition: m2mb_socket.h:297
void VOID
Definition: m2mb_types.h:74
#define M2MB_DNS_MAX_HOSTNAME_LEN
M2MB_STATUS_T m2mb_dns_server_init(VOID)
DNS server initialization.
M2MB_STATUS_T m2mb_dns_server_add_host(const char *hostName, UINT32 ip4addr, M2MB_SOCKET_BSD_IPV6_ADDR_T *ip6addr, UINT32 ttl)
Add a DNS host information.
unsigned long int UINT32
Definition: m2mb_types.h:88
Structure of HOST in the DNS server.
M2MB_STATUS_T m2mb_dns_server_delete_host(const char *hostName)
Delete the host information.