#include <ice_strans.h>
This structure describes ICE stream transport configuration. Application should initialize the structure by calling pj_ice_strans_cfg_default() before changing the settings.
◆ af
int pj_ice_strans_cfg::af |
The address family which will be used as the default address in the SDP offer. Setting this to pj_AF_UNSPEC() means that the address family will not be considered during the process of default candidate selection.
The default value is pj_AF_INET() (IPv4).
Component specific settings, which will override the settings in the STUN and TURN settings above. For example, setting the QoS parameters here allows the application to have different QoS traffic type for RTP and RTCP component.
◆ num_send_buf
unsigned pj_ice_strans_cfg::num_send_buf |
◆ opt
This contains various STUN session options. Once the ICE stream transport is created, application may also change the options with pj_ice_strans_set_options().
◆ 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.
By default all settings in this structure are disabled.
◆ 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 value is PJ_QOS_TYPE_BEST_EFFORT.
◆ resolver
DNS resolver to be used to resolve servers. If DNS SRV resolution is required, the resolver must be set.
The default value is NULL.
◆ send_buf_size
unsigned pj_ice_strans_cfg::send_buf_size |
◆ so_rcvbuf_size
unsigned pj_ice_strans_cfg::so_rcvbuf_size |
Specify target value for socket receive buffer size. It will be applied using setsockopt(). When it fails to set the specified size, it will try with lower value until the highest possible is successfully set.
When this is set to zero, this component will apply socket receive buffer size settings specified in STUN and TURN socket config above, i.e: stun::cfg::so_rcvbuf_size and turn::cfg::so_rcvbuf_size. Otherwise, this setting will be applied to STUN and TURN sockets for this component, overriding the setting specified in STUN/TURN socket config.
Default: 0
◆ so_sndbuf_size
unsigned pj_ice_strans_cfg::so_sndbuf_size |
Specify target value for socket send buffer size. It will be applied using setsockopt(). When it fails to set the specified size, it will try with lower value until the highest possible is successfully set.
When this is set to zero, this component will apply socket send buffer size settings specified in STUN and TURN socket config above, i.e: stun::cfg::so_sndbuf_size and turn::cfg::so_sndbuf_size. Otherwise, this setting will be applied to STUN and TURN sockets for this component, overriding the setting specified in STUN/TURN socket config.
Default: 0
◆ stun
Warning: this field is deprecated, please use stun_tp field instead. To maintain backward compatibility, if stun_tp_cnt is zero, the value of this field will be copied to stun_tp.
STUN and local transport settings. This specifies the settings for local UDP socket address and STUN resolved address.
◆ stun_cfg
STUN configuration which contains the timer heap and ioqueue instance to be used, and STUN retransmission settings. This setting is mandatory.
The default value is all zero. Application must initialize this setting with pj_stun_config_init().
◆ stun_tp
STUN and local transport settings. This specifies the settings for local UDP socket address and STUN resolved address.
◆ stun_tp_cnt
unsigned pj_ice_strans_cfg::stun_tp_cnt |
Number of STUN transports.
Default: 0
◆ turn
Warning: this field is deprecated, please use turn_tp field instead. To maintain backward compatibility, if turn_tp_cnt is zero, the value of this field will be copied to turn_tp.
TURN transport settings.
◆ turn_tp
◆ turn_tp_cnt
unsigned pj_ice_strans_cfg::turn_tp_cnt |
Number of TURN transports.
Default: 0
The documentation for this struct was generated from the following file: