Home --> Documentations --> PJNATH Reference

Data Fields

int bandwidth
int lifetime
int ka_interval
int af

Detailed Description

Allocation parameter, which can be given when application calls pj_turn_session_alloc() to allocate relay address in the TURN server. Application should call pj_turn_alloc_param_default() to initialize this structure with the default values.

Field Documentation

int pj_turn_alloc_param::af

The requested ADDRESS-FAMILY. Default is zero to request relay with address family matched to the one specified in TURN session creation. Valid values are zero, pj_AF_INET(), and pj_AF_INET6().

Default value is zero.

int pj_turn_alloc_param::bandwidth

The requested BANDWIDTH. Default is zero to not request any specific bandwidth. Note that this attribute has been deprecated after TURN-08 draft, hence application should only use this attribute when talking to TURN-07 or older version.

int pj_turn_alloc_param::ka_interval

If set to non-zero, the TURN session will periodically send blank Send Indication every PJ_TURN_KEEP_ALIVE_SEC to refresh local NAT bindings. Default is zero.

int pj_turn_alloc_param::lifetime

The requested LIFETIME. Default is zero to not request any explicit allocation lifetime.

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


PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.