WE310F5  39.00.000
m2mb_dns_service_discovery.h File Reference

This file contains public APIs and structures of Domain Name System service discovery (DNS-SD) module. More...

Go to the source code of this file.

Data Structures

struct  M2MB_DNSSD_CTXT_T
 Context information for DNS-SD. More...
 
struct  M2MB_DNSSD_INIT_PARAMS
 DNS-SD initialization parameters. More...
 
struct  M2MB_DNSSD_TARGET_INFO_T
 DNS-SD server information. More...
 
struct  M2MB_DNSSD_DATA_T
 DNS-SD data. More...
 
struct  M2MB_DNSSD_DISCOVER_ENTRY_T
 DNS-SD data entry. More...
 
struct  M2MB_DNSSD_DISCOVER_T
 DNS-SD discover data buffer. More...
 
#define M2MB_DNSSD_MAX_BUF_ENTRIES   15
 
#define M2MB_DNSSD_MAX_TIMEOUT   5000
 
enum  M2MB_DNSSD_RSP_TYPE_E {
  M2MB_DNSSD_IPV4_ADDR = 0x01,
  M2MB_DNSSD_PTR = 0x0c,
  M2MB_DNSSD_TYPE_TXT_INFO = 0x10,
  M2MB_DNSSD_IPV6_ADDR = 0x1c,
  M2MB_DNSSD_TYPE_TARGET_INFO = 0x21,
  M2MB_DNSSD_SEC = 0x2f,
  M2MB_DNSSD_ANY = 0xff
}
 Response types. More...
 
typedef void(* M2MB_DNSSD_CB_T) (void *cbCtx, struct M2MB_DNSSD_DISCOVER_T *param)
 DNS service discovery callback declaration. More...
 
typedef struct M2MB_DNSSD_INIT_PARAMS M2MB_DNSSD_INIT_PARAMS_T
 DNS-SD initialization parameters. More...
 
typedef struct M2MB_DNSSD_DISCOVER_T M2MB_DNSSD_DISCOVER_T
 DNS-SD discover data buffer. More...
 
M2MB_STATUS_T m2mb_dnssd_init (HANDLE *handle, M2MB_DNSSD_INIT_PARAMS_T *init)
 m2mb_dnssd_init is called to initialize DNS service discovery. More...
 
M2MB_STATUS_T m2mb_dnssd_deinit (HANDLE handle)
 m2mb_dnssd_deinit is called to de-initialize DNS-SD module. More...
 
M2MB_STATUS_T m2mb_dnssd_discover (HANDLE handle, const CHAR *svc_instance_name)
 m2mb_dnssd_discover is called to discover a service. More...
 

Detailed Description

This file contains public APIs and structures of Domain Name System service discovery (DNS-SD) module.

epl/inc/nwk/m2mb_dns_service_discovery.h

DNS service discovery provides APIs that allow users to discover all the available services of a specific type on the local link.

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

Note
Dependencies:
"#include <m2mb_types.h>"
"#include <m2mb_status.h>"
"#include <m2mb_wlan_driver.h>"
"#include <m2mb_nwif.h>"
Author
Sandeep Itha
Date
22/01/2018

Definition in file m2mb_dns_service_discovery.h.