Electronics and Software
Engineering Innovation
BMeasure-lib 1.1.0
BMdns.cpp File Reference
#include <BMdns.h>
#include <BDebug.h>
#include <stdio.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>

Macros

#define BDEBUGL1   0
 

Enumerations

enum  MdnsRecordType {
  MDNS_RECORDTYPE_IGNORE = 0 , MDNS_RECORDTYPE_A = 1 , MDNS_RECORDTYPE_PTR = 12 , MDNS_RECORDTYPE_TXT = 16 ,
  MDNS_RECORDTYPE_AAAA = 28 , MDNS_RECORDTYPE_SRV = 33
}
 
enum  MdnsEntryType { MDNS_ENTRYTYPE_ANSWER = 1 , MDNS_ENTRYTYPE_AUTHORITY = 2 , MDNS_ENTRYTYPE_ADDITIONAL = 3 }
 
enum  MdnsClass { MDNS_CLASS_IN = 1 }
 

Functions

static int mdns_write_string (BUInt8 *buffer, BUInt8 *p, BString str)
 
static int mdns_read_string (void *buffer, BUInt8 *p, BString &str)
 
static int mdns_read_strings (void *buffer, BUInt8 *p, BString &str)
 

Macro Definition Documentation

◆ BDEBUGL1

#define BDEBUGL1   0

Enumeration Type Documentation

◆ MdnsClass

enum MdnsClass
Enumerator
MDNS_CLASS_IN 

◆ MdnsEntryType

Enumerator
MDNS_ENTRYTYPE_ANSWER 
MDNS_ENTRYTYPE_AUTHORITY 
MDNS_ENTRYTYPE_ADDITIONAL 

◆ MdnsRecordType

Enumerator
MDNS_RECORDTYPE_IGNORE 
MDNS_RECORDTYPE_A 
MDNS_RECORDTYPE_PTR 
MDNS_RECORDTYPE_TXT 
MDNS_RECORDTYPE_AAAA 
MDNS_RECORDTYPE_SRV 

Function Documentation

◆ mdns_read_string()

static int mdns_read_string ( void *  buffer,
BUInt8 p,
BString str 
)
static

◆ mdns_read_strings()

static int mdns_read_strings ( void *  buffer,
BUInt8 p,
BString str 
)
static

◆ mdns_write_string()

static int mdns_write_string ( BUInt8 buffer,
BUInt8 p,
BString  str 
)
static