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_cfg


typedef struct pj_turn_sock pj_turn_sock


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_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)

Detailed Description


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