Home --> Documentations --> PJNATH Reference
Go to the documentation of this file.
19#ifndef __PJNATH_STUN_SESSION_H__
20#define __PJNATH_STUN_SESSION_H__
241 unsigned src_addr_len);
279 unsigned src_addr_len);
307 unsigned src_addr_len);
740 unsigned src_addr_len);
pj_stun_auth_type Definition: stun_auth.h:45
pj_status_t pj_stun_session_create_res(pj_stun_session *sess, const pj_stun_rx_data *rdata, unsigned err_code, const pj_str_t *err_msg, pj_stun_tx_data **p_tdata)
pj_bool_t pj_stun_session_use_fingerprint(pj_stun_session *sess, pj_bool_t use)
pj_status_t pj_stun_session_on_rx_pkt(pj_stun_session *sess, const void *packet, pj_size_t pkt_size, unsigned options, void *token, pj_size_t *parsed_len, const pj_sockaddr_t *src_addr, unsigned src_addr_len)
void * pj_stun_session_get_user_data(pj_stun_session *sess)
void pj_stun_msg_destroy_tdata(pj_stun_session *sess, pj_stun_tx_data *tdata)
pj_status_t pj_stun_session_create_req(pj_stun_session *sess, int msg_type, pj_uint32_t magic, const pj_uint8_t tsx_id[12], pj_stun_tx_data **p_tdata)
pj_status_t pj_stun_session_set_user_data(pj_stun_session *sess, void *user_data)
pj_stun_sess_msg_log_flag Definition: stun_session.h:371
pj_status_t pj_stun_session_send_msg(pj_stun_session *sess, void *token, pj_bool_t cache_res, pj_bool_t retransmit, const pj_sockaddr_t *dst_addr, unsigned addr_len, pj_stun_tx_data *tdata)
void pj_stun_session_set_log(pj_stun_session *sess, unsigned flags)
pj_status_t pj_stun_session_create_ind(pj_stun_session *sess, int msg_type, pj_stun_tx_data **p_tdata)
pj_status_t pj_stun_session_cancel_req(pj_stun_session *sess, pj_stun_tx_data *tdata, pj_bool_t notify, pj_status_t status)
pj_status_t pj_stun_session_respond(pj_stun_session *sess, const pj_stun_rx_data *rdata, unsigned code, const char *err_msg, void *token, pj_bool_t cache, const pj_sockaddr_t *dst_addr, unsigned addr_len)
pj_status_t pj_stun_session_create(pj_stun_config *cfg, const char *name, const pj_stun_session_cb *cb, pj_bool_t fingerprint, pj_grp_lock_t *grp_lock, pj_stun_session **p_sess)
pj_status_t pj_stun_session_destroy(pj_stun_session *sess)
pj_status_t pj_stun_session_set_software_name(pj_stun_session *sess, const pj_str_t *sw)
struct pj_stun_session pj_stun_session Definition: stun_session.h:174
pj_grp_lock_t * pj_stun_session_get_grp_lock(pj_stun_session *sess)
pj_status_t pj_stun_session_set_credential(pj_stun_session *sess, pj_stun_auth_type auth_type, const pj_stun_auth_cred *cred)
pj_status_t pj_stun_session_retransmit_req(pj_stun_session *sess, pj_stun_tx_data *tdata, pj_bool_t mod_count)
@ PJ_STUN_SESS_LOG_RX_IND Definition: stun_session.h:378
@ PJ_STUN_SESS_LOG_TX_RES Definition: stun_session.h:373
@ PJ_STUN_SESS_LOG_RX_REQ Definition: stun_session.h:376
@ PJ_STUN_SESS_LOG_TX_IND Definition: stun_session.h:374
@ PJ_STUN_SESS_LOG_TX_REQ Definition: stun_session.h:372
@ PJ_STUN_SESS_LOG_RX_RES Definition: stun_session.h:377
struct pj_stun_client_tsx pj_stun_client_tsx Definition: stun_transaction.h:58
struct pj_grp_lock_t pj_grp_lock_t
Definition: stun_auth.h:114
Definition: stun_config.h:48
Definition: stun_msg.h:1172
Definition: stun_auth.h:299
Definition: stun_session.h:316
pj_stun_req_cred_info info Definition: stun_session.h:327
pj_stun_msg * msg Definition: stun_session.h:320
Definition: stun_session.h:183
pj_status_t(* on_send_msg)(pj_stun_session *sess, void *token, const void *pkt, pj_size_t pkt_size, const pj_sockaddr_t *dst_addr, unsigned addr_len) Definition: stun_session.h:205
pj_status_t(* on_rx_request)(pj_stun_session *sess, const pj_uint8_t *pkt, unsigned pkt_len, const pj_stun_rx_data *rdata, void *token, const pj_sockaddr_t *src_addr, unsigned src_addr_len) Definition: stun_session.h:235
void(* on_request_complete)(pj_stun_session *sess, pj_status_t status, void *token, pj_stun_tx_data *tdata, const pj_stun_msg *response, const pj_sockaddr_t *src_addr, unsigned src_addr_len) Definition: stun_session.h:273
pj_status_t(* on_rx_indication)(pj_stun_session *sess, const pj_uint8_t *pkt, unsigned pkt_len, const pj_stun_msg *msg, void *token, const pj_sockaddr_t *src_addr, unsigned src_addr_len) Definition: stun_session.h:301
Definition: stun_session.h:336
pj_uint8_t msg_key[12] Definition: stun_session.h:350
void * token Definition: stun_session.h:345
pj_stun_req_cred_info auth_info Definition: stun_session.h:354
pj_stun_msg * msg Definition: stun_session.h:342
const pj_sockaddr_t * dst_addr Definition: stun_session.h:361
unsigned max_len Definition: stun_session.h:357
pj_uint32_t msg_magic Definition: stun_session.h:349
pj_pool_t * pool Definition: stun_session.h:340
pj_stun_session * sess Definition: stun_session.h:341
PJ_DECL_LIST_MEMBER(struct pj_stun_tx_data)
pj_stun_client_tsx * client_tsx Definition: stun_session.h:347
pj_bool_t retransmit Definition: stun_session.h:348
pj_bool_t is_destroying Definition: stun_session.h:343
pj_size_t pkt_size Definition: stun_session.h:358
unsigned addr_len Definition: stun_session.h:360
pj_grp_lock_t * grp_lock Definition: stun_session.h:352
pj_timer_entry res_timer Definition: stun_session.h:363
void * pkt Definition: stun_session.h:356
|
PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.
|