WL865E4-P  36.07.001
m2mb_dns_service_discovery.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
32 #ifndef M2MB_DNS_SERVICE_DISCOVERY_H
33 #define M2MB_DNS_SERVICE_DISCOVERY_H
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
54 /*-----------------------------------------------------------------------------------------------*/
55 
61 /* Global declarations ==========================================================================*/
62 
63 #define M2MB_DNSSD_MAX_BUF_ENTRIES 15
64 #define M2MB_DNSSD_MAX_TIMEOUT 5000
66 /* Global typedefs ==============================================================================*/
67 
69 
78 typedef void (*M2MB_DNSSD_CB_T)(struct M2MB_DNSSD_DISCOVER_T *param);
79 
88 typedef enum
89 {
96 
104 typedef enum
105 {
107  M2MB_DNSSD_PTR = 0x0c,
111  M2MB_DNSSD_SEC = 0x2f,
112  M2MB_DNSSD_ANY = 0xff,
114 
123 typedef struct
124 {
129 
138 typedef struct
139 {
143 
152 typedef struct
153 {
159 
167 typedef struct
168 {
174 
182 typedef struct
183 {
187  union {
192  CHAR *txt[5];
193  }data;
195 
203 typedef struct
204 {
208 
216 typedef struct M2MB_DNSSD_DISCOVER_T {
222 
223 /* Global functions =========================================================*/
224 /*---------------------------------------------------------------------------*/
273 /*---------------------------------------------------------------------------*/
275 
276 /*---------------------------------------------------------------------------*/
346 /*---------------------------------------------------------------------------*/
348 
349 /*---------------------------------------------------------------------------*/
427 /*---------------------------------------------------------------------------*/
429 
430 /*---------------------------------------------------------------------------*/
510 /*-----------------------------------------------------------------------------------------------*/
511 M2MB_STATUS_T m2mb_dnssd_discover(const CHAR *svc_instance_name);
512 
516 /*-----------------------------------------------------------------------------------------------*/
517 
518 #ifdef __cplusplus
519 }
520 #endif
521 #endif
522 
M2MB_DNSSD_RSP_TYPE_E
Response types.
M2MB_DNSSD_CTXT_T ** ctxt
unsigned char UINT8
Definition: m2mb_types.h:83
void(* M2MB_DNSSD_CB_T)(struct M2MB_DNSSD_DISCOVER_T *param)
DNS service discovery callback declaration.
DNS-SD start command.
struct M2MB_DNSSD_DISCOVER_T M2MB_DNSSD_DISCOVER_T
DNS-SD discover data buffer.
DNS-SD server information.
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:95
M2MB_DNSSD_TARGET_INFO_T * target
M2MB_DNSSD_DISCOVER_ENTRY_T ** entries
M2MB_STATUS_T m2mb_dnssd_init(M2MB_DNSSD_INIT_T *init)
m2mb_dnssd_init is called to initialize DNS service discovery.
unsigned short UINT16
Definition: m2mb_types.h:84
unsigned long int UINT32
Definition: m2mb_types.h:85
char CHAR
Definition: m2mb_types.h:74
IPv6 Internet address.
Definition: m2mb_socket.h:324
DNS-SD discover data buffer.
M2MB_DNSSD_RSP_TYPE_E type
M2MB_DNSSD_COMMAND_E
Commands supported by DNS-SD.
M2MB_STATUS_T m2mb_dnssd_start(M2MB_DNSSD_START_T *start)
m2mb_dnssd_start is called to start DNS-SD.
Context information for DNS-SD.
M2MB_STATUS_T m2mb_dnssd_stop(M2MB_DNSSD_CTXT_T *ctxt)
m2mb_dnssd_stop is called to stop DNS-SD module.
DNS-SD initialization command.
M2MB_STATUS_T m2mb_dnssd_discover(const CHAR *svc_instance_name)
m2mb_dnssd_discover is called to discover a service.