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 <srv_resolver.h>

Data Fields

unsigned count
 
struct {
   unsigned   priority
 
   unsigned   weight
 
   pj_uint16_t   port
 
   pj_dns_addr_record   server
 
entry [PJ_DNS_SRV_MAX_ADDR]
 

Detailed Description

This structure represents DNS SRV records as the result of DNS SRV resolution using pj_dns_srv_resolve().

Field Documentation

◆ count

unsigned pj_dns_srv_record::count

Number of address records.

◆ 

struct { ... } pj_dns_srv_record::entry[PJ_DNS_SRV_MAX_ADDR]

Address records.

◆ port

pj_uint16_t pj_dns_srv_record::port

Port number.

◆ priority

unsigned pj_dns_srv_record::priority

Server priority (the lower the higher the priority).

◆ server

pj_dns_addr_record pj_dns_srv_record::server

The host address.

◆ weight

unsigned pj_dns_srv_record::weight

Server weight (the higher the more load it can handle).


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.