19#ifndef __PJNATH_STUN_SOCK_H__
20#define __PJNATH_STUN_SOCK_H__
#define PJ_ICE_ST_MAX_CAND
Definition: config.h:250
void * pj_stun_sock_get_user_data(pj_stun_sock *stun_sock)
pj_status_t pj_stun_sock_create(pj_stun_config *stun_cfg, const char *name, int af, const pj_stun_sock_cb *cb, const pj_stun_sock_cfg *cfg, void *user_data, pj_stun_sock **p_sock)
void pj_stun_sock_cfg_default(pj_stun_sock_cfg *cfg)
pj_status_t pj_stun_sock_set_user_data(pj_stun_sock *stun_sock, void *user_data)
pj_status_t pj_stun_sock_sendto(pj_stun_sock *stun_sock, pj_ioqueue_op_key_t *send_key, const void *pkt, unsigned pkt_len, unsigned flag, const pj_sockaddr_t *dst_addr, unsigned addr_len)
pj_status_t pj_stun_sock_start(pj_stun_sock *stun_sock, const pj_str_t *domain, pj_uint16_t default_port, pj_dns_resolver *resolver)
pj_grp_lock_t * pj_stun_sock_get_grp_lock(pj_stun_sock *stun_sock)
pj_status_t pj_stun_sock_get_info(pj_stun_sock *stun_sock, pj_stun_sock_info *info)
const char * pj_stun_sock_op_name(pj_stun_sock_op op)
pj_status_t pj_stun_sock_destroy(pj_stun_sock *sock)
pj_stun_sock_op
Definition: stun_sock.h:69
struct pj_stun_sock pj_stun_sock
Definition: stun_sock.h:61
@ PJ_STUN_SOCK_MAPPED_ADDR_CHANGE
Definition: stun_sock.h:89
@ PJ_STUN_SOCK_DNS_OP
Definition: stun_sock.h:73
@ PJ_STUN_SOCK_KEEP_ALIVE_OP
Definition: stun_sock.h:84
@ PJ_STUN_SOCK_BINDING_OP
Definition: stun_sock.h:78
unsigned short pj_uint16_t
struct pj_grp_lock_t pj_grp_lock_t
struct pj_dns_resolver pj_dns_resolver
Definition: stun_config.h:48
Definition: stun_sock.h:100
pj_bool_t(* on_status)(pj_stun_sock *stun_sock, pj_stun_sock_op op, pj_status_t status)
Definition: stun_sock.h:169
pj_bool_t(* on_rx_data)(pj_stun_sock *stun_sock, void *pkt, unsigned pkt_len, const pj_sockaddr_t *src_addr, unsigned addr_len)
Definition: stun_sock.h:115
pj_bool_t(* on_data_sent)(pj_stun_sock *stun_sock, pj_ioqueue_op_key_t *send_key, pj_ssize_t sent)
Definition: stun_sock.h:137
Definition: stun_sock.h:219
unsigned so_rcvbuf_size
Definition: stun_sock.h:305
pj_sockaddr bound_addr
Definition: stun_sock.h:252
unsigned max_pkt_size
Definition: stun_sock.h:233
pj_uint16_t port_range
Definition: stun_sock.h:261
int ka_interval
Definition: stun_sock.h:269
unsigned async_cnt
Definition: stun_sock.h:242
pj_qos_params qos_params
Definition: stun_sock.h:287
pj_qos_type qos_type
Definition: stun_sock.h:278
pj_grp_lock_t * grp_lock
Definition: stun_sock.h:226
pj_bool_t qos_ignore_error
Definition: stun_sock.h:295
unsigned so_sndbuf_size
Definition: stun_sock.h:315
Definition: stun_sock.h:181
unsigned alias_cnt
Definition: stun_sock.h:203
pj_sockaddr srv_addr
Definition: stun_sock.h:190
pj_sockaddr aliases[PJ_ICE_ST_MAX_CAND]
Definition: stun_sock.h:208
pj_sockaddr mapped_addr
Definition: stun_sock.h:197
pj_sockaddr bound_addr
Definition: stun_sock.h:185