WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

#include <dns.h>

Data Structures

union  rdata
 

Data Fields

pj_str_t name
 
pj_uint16_t type
 
pj_uint16_t dnsclass
 
pj_uint32_t ttl
 
pj_uint16_t rdlength
 
void * data
 
union pj_dns_parsed_rr::rdata rdata
 

Detailed Description

This structure describes a Resource Record parsed from the DNS packet. All integral values are in host byte order.

Field Documentation

◆ data

void* pj_dns_parsed_rr::data

Pointer to the raw resource data, only when the type is not known. If it is known, the data will be put in rdata below.

◆ dnsclass

pj_uint16_t pj_dns_parsed_rr::dnsclass

Class of data (PJ_DNS_CLASS_IN=1).

◆ name

pj_str_t pj_dns_parsed_rr::name

The domain name which this rec pertains.

◆ rdlength

pj_uint16_t pj_dns_parsed_rr::rdlength

Resource data length.

◆ ttl

pj_uint32_t pj_dns_parsed_rr::ttl

Time to live.

◆ type

pj_uint16_t pj_dns_parsed_rr::type

RR type code.


The documentation for this struct was generated from the following file:

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.