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 --> PJNATH Reference

turn_sock.h File Reference

TURN relay using UDP client as transport protocol. More...

Go to the source code of this file.

Data Structures

struct  pj_turn_sock_cb
 
struct  pj_turn_sock_tls_cfg
 
struct  pj_turn_sock_cfg
 

Macros

#define PJ_TURN_TLS_DEFAULT_PROTO
 

Typedefs

typedef struct pj_turn_sock pj_turn_sock
 

Functions

void pj_turn_sock_tls_cfg_default (pj_turn_sock_tls_cfg *tls_cfg)
 
void pj_turn_sock_tls_cfg_dup (pj_pool_t *pool, pj_turn_sock_tls_cfg *dst, const pj_turn_sock_tls_cfg *src)
 
void pj_turn_sock_tls_cfg_wipe_keys (pj_turn_sock_tls_cfg *tls_cfg)
 
void pj_turn_sock_cfg_default (pj_turn_sock_cfg *cfg)
 
pj_status_t pj_turn_sock_create (pj_stun_config *cfg, int af, pj_turn_tp_type conn_type, const pj_turn_sock_cb *cb, const pj_turn_sock_cfg *setting, void *user_data, pj_turn_sock **p_turn_sock)
 
void pj_turn_sock_destroy (pj_turn_sock *turn_sock)
 
pj_status_t pj_turn_sock_set_user_data (pj_turn_sock *turn_sock, void *user_data)
 
void * pj_turn_sock_get_user_data (pj_turn_sock *turn_sock)
 
pj_grp_lock_tpj_turn_sock_get_grp_lock (pj_turn_sock *turn_sock)
 
pj_status_t pj_turn_sock_get_info (pj_turn_sock *turn_sock, pj_turn_session_info *info)
 
pj_status_t pj_turn_sock_lock (pj_turn_sock *turn_sock)
 
pj_status_t pj_turn_sock_unlock (pj_turn_sock *turn_sock)
 
void pj_turn_sock_set_log (pj_turn_sock *turn_sock, unsigned flags)
 
pj_status_t pj_turn_sock_set_software_name (pj_turn_sock *turn_sock, const pj_str_t *sw)
 
pj_status_t pj_turn_sock_alloc (pj_turn_sock *turn_sock, const pj_str_t *domain, int default_port, pj_dns_resolver *resolver, const pj_stun_auth_cred *cred, const pj_turn_alloc_param *param)
 
pj_status_t pj_turn_sock_set_perm (pj_turn_sock *turn_sock, unsigned addr_cnt, const pj_sockaddr addr[], unsigned options)
 
pj_status_t pj_turn_sock_sendto (pj_turn_sock *turn_sock, const pj_uint8_t *pkt, unsigned pkt_len, const pj_sockaddr_t *peer_addr, unsigned addr_len)
 
pj_status_t pj_turn_sock_bind_channel (pj_turn_sock *turn_sock, const pj_sockaddr_t *peer, unsigned addr_len)
 
pj_status_t pj_turn_sock_connect (pj_turn_sock *turn_sock, const pj_sockaddr_t *peer, unsigned addr_len)
 
pj_status_t pj_turn_sock_disconnect (pj_turn_sock *turn_sock, const pj_sockaddr_t *peer, unsigned addr_len)
 

 


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