HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_MDNSImpl.h File Reference
#include <SYS/SYS_String.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
+ Include dependency graph for NET_MDNSImpl.h:

Go to the source code of this file.

Classes

struct  mdns_string_t
 
struct  mdns_string_pair_t
 
struct  mdns_record_srv_t
 
struct  mdns_record_txt_t
 
struct  mdns_header_t
 

Macros

#define MDNS_INVALID_POS   ((size_t)-1)
 
#define MDNS_STRING_CONST(s)   (s), (sizeof((s)) - 1)
 
#define MDNS_STRING_FORMAT(s)   (int)((s).length), s.str
 
#define MDNS_POINTER_OFFSET(p, ofs)   ((void*)((char*)(p) + (ptrdiff_t)(ofs)))
 
#define MDNS_POINTER_OFFSET_CONST(p, ofs)   ((const void*)((const char*)(p) + (ptrdiff_t)(ofs)))
 
#define MDNS_POINTER_DIFF(a, b)   ((size_t)((const char*)(a) - (const char*)(b)))
 
#define MDNS_PORT   5353
 
#define MDNS_UNICAST_RESPONSE   0x8000U
 
#define MDNS_CACHE_FLUSH   0x8000U
 

Typedefs

typedef enum mdns_class mdns_class_t
 
typedef int(* mdns_record_callback_fn )(int sock, const struct sockaddr *from, size_t addrlen, NET_mDNSEntryType entry, uint16_t query_id, uint16_t rtype, uint16_t rclass, uint32_t ttl, const void *data, size_t size, size_t name_offset, size_t name_length, size_t record_offset, size_t record_length, void *user_data)
 
typedef struct mdns_string_t mdns_string_t
 
typedef struct mdns_string_pair_t mdns_string_pair_t
 
typedef struct mdns_record_srv_t mdns_record_srv_t
 
typedef struct mdns_record_txt_t mdns_record_txt_t
 
typedef size_t mdns_size_t
 

Enumerations

enum  mdns_class { MDNS_CLASS_IN = 1 }
 

Macro Definition Documentation

#define MDNS_CACHE_FLUSH   0x8000U

Definition at line 50 of file NET_MDNSImpl.h.

#define MDNS_INVALID_POS   ((size_t)-1)

Definition at line 39 of file NET_MDNSImpl.h.

#define MDNS_POINTER_DIFF (   a,
  b 
)    ((size_t)((const char*)(a) - (const char*)(b)))

Definition at line 46 of file NET_MDNSImpl.h.

#define MDNS_POINTER_OFFSET (   p,
  ofs 
)    ((void*)((char*)(p) + (ptrdiff_t)(ofs)))

Definition at line 44 of file NET_MDNSImpl.h.

#define MDNS_POINTER_OFFSET_CONST (   p,
  ofs 
)    ((const void*)((const char*)(p) + (ptrdiff_t)(ofs)))

Definition at line 45 of file NET_MDNSImpl.h.

#define MDNS_PORT   5353

Definition at line 48 of file NET_MDNSImpl.h.

#define MDNS_STRING_CONST (   s)    (s), (sizeof((s)) - 1)

Definition at line 41 of file NET_MDNSImpl.h.

#define MDNS_STRING_FORMAT (   s)    (int)((s).length), s.str

Definition at line 42 of file NET_MDNSImpl.h.

#define MDNS_UNICAST_RESPONSE   0x8000U

Definition at line 49 of file NET_MDNSImpl.h.

Typedef Documentation

typedef enum mdns_class mdns_class_t

Definition at line 54 of file NET_MDNSImpl.h.

typedef int(* mdns_record_callback_fn)(int sock, const struct sockaddr *from, size_t addrlen, NET_mDNSEntryType entry, uint16_t query_id, uint16_t rtype, uint16_t rclass, uint32_t ttl, const void *data, size_t size, size_t name_offset, size_t name_length, size_t record_offset, size_t record_length, void *user_data)

Definition at line 56 of file NET_MDNSImpl.h.

Definition at line 64 of file NET_MDNSImpl.h.

Definition at line 65 of file NET_MDNSImpl.h.

typedef size_t mdns_size_t

Definition at line 70 of file NET_MDNSImpl.h.

Definition at line 63 of file NET_MDNSImpl.h.

typedef struct mdns_string_t mdns_string_t

Definition at line 62 of file NET_MDNSImpl.h.

Enumeration Type Documentation

enum mdns_class
Enumerator
MDNS_CLASS_IN 

Definition at line 52 of file NET_MDNSImpl.h.