BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJSIP Reference

pjsip_udp_transport_cfg Struct Reference

#include <sip_transport_udp.h>

Data Fields

int af
 
pj_sockaddr bind_addr
 
pjsip_host_port addr_name
 
unsigned async_cnt
 
pj_qos_type qos_type
 
pj_qos_params qos_params
 
pj_sockopt_params sockopt_params
 

Detailed Description

Settings to be specified when creating the UDP transport. Application should initialize this structure with its default values by calling pjsip_udp_transport_cfg_default().

Field Documentation

◆ af

int pjsip_udp_transport_cfg::af

Address family to use. Valid values are pj_AF_INET() and pj_AF_INET6(). Default is pj_AF_INET().

◆ bind_addr

pj_sockaddr pjsip_udp_transport_cfg::bind_addr

Address to bind the socket to.

◆ addr_name

pjsip_host_port pjsip_udp_transport_cfg::addr_name

Optional published address, which is the address to be advertised as the address of this SIP transport. By default the bound address will be used as the published address.

◆ async_cnt

unsigned pjsip_udp_transport_cfg::async_cnt

Number of simultaneous asynchronous accept() operations to be supported. It is recommended that the number here corresponds to the number of processors in the system (or the number of SIP worker threads).

Default: 1

◆ qos_type

pj_qos_type pjsip_udp_transport_cfg::qos_type

QoS traffic type to be set on this transport. When application wants to apply QoS tagging to the transport, it's preferable to set this field rather than qos_param fields since this is more portable.

Default is QoS not set.

◆ qos_params

pj_qos_params pjsip_udp_transport_cfg::qos_params

Set the low level QoS parameters to the transport. This is a lower level operation than setting the qos_type field and may not be supported on all platforms.

Default is QoS not set.

◆ sockopt_params

pj_sockopt_params pjsip_udp_transport_cfg::sockopt_params

Specify options to be set on the transport.

By default there is no options.


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

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.