Home --> Documentations --> PJSIP Reference

pj_stun_resolve_result Struct Reference

#include <pjsua.h>

Data Fields

void * token
pj_status_t status
pj_str_t name
pj_sockaddr addr
unsigned index

Detailed Description

This structure is used to represent the result of the STUN server resolution and testing, the pjsua_resolve_stun_servers() function. This structure will be passed in pj_stun_resolve_cb callback.

Forward declaration for pj_stun_resolve_result

Field Documentation

◆ token

void* pj_stun_resolve_result::token

Arbitrary data that was passed to pjsua_resolve_stun_servers() function.

◆ status

pj_status_t pj_stun_resolve_result::status

This will contain PJ_SUCCESS if at least one usable STUN server is found, otherwise it will contain the last error code during the operation.

◆ name

pj_str_t pj_stun_resolve_result::name

The server name that yields successful result. This will only contain value if status is successful.

◆ addr

pj_sockaddr pj_stun_resolve_result::addr

The server IP address. This will only contain value if status is successful.

◆ index

unsigned pj_stun_resolve_result::index

The index of the usable STUN server.

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.