BLOG | DOCUMENTATION | TRAC

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

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

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.

pj_uint16_t pj_dns_parsed_rr::dnsclass

Class of data (PJ_DNS_CLASS_IN=1).

pj_str_t pj_dns_parsed_rr::name

The domain name which this rec pertains.

pj_uint16_t pj_dns_parsed_rr::rdlength

Resource data length.

pj_uint32_t pj_dns_parsed_rr::ttl

Time to live.

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.