Changeset 1089 for pjproject/trunk/pjnath/include/pjnath/ice.h
- Timestamp:
- Mar 20, 2007 10:36:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/ice.h
r1085 r1089 28 28 #include <pjlib-util/resolver.h> 29 29 #include <pj/sock.h> 30 #include <pj/timer.h> 31 30 32 31 33 PJ_BEGIN_DECL … … 68 70 #define PJ_ICE_MAX_COMP 8 69 71 #define PJ_ICE_MAX_CHECKS 32 72 #define PJ_ICE_TA_VAL 20 70 73 71 74 /** … … 74 77 typedef struct pj_ice_comp 75 78 { 76 unsigned comp_id; 77 pj_sock_t sock; 79 unsigned comp_id; 80 pj_sock_t sock; 81 pj_stun_session *stun_sess; 82 pj_sockaddr local_addr; 78 83 } pj_ice_comp; 79 84 … … 105 110 typedef struct pj_ice_check 106 111 { 107 unsigned cand_id; 108 pj_uint32_t comp_id; 109 pj_str_t foundation; 110 111 pj_uint64_t check_prio; 112 pj_ice_check_state check_state; 113 114 pj_ice_cand_type rem_type; 115 pj_str_t rem_foundation; 116 pj_uint32_t rem_prio; 117 pj_sockaddr rem_addr; 118 pj_sockaddr rem_base_addr; 112 pj_ice_cand *lcand; 113 pj_ice_cand *rcand; 114 115 pj_uint64_t prio; 116 pj_ice_check_state state; 117 pj_bool_t nominated; 118 pj_status_t err_code; 119 119 } pj_ice_check; 120 120 … … 132 132 unsigned count; 133 133 pj_ice_check checks[PJ_ICE_MAX_CHECKS]; 134 pj_timer_entry timer; 134 135 } pj_ice_checklist; 135 136 … … 176 177 pj_ice_role role; 177 178 pj_ice_state state; 178 179 179 pj_ice_cb cb; 180 181 pj_stun_config stun_cfg; 180 182 181 183 /* STUN credentials */ … … 206 208 pj_bool_t relay_enabled; 207 209 pj_sockaddr stun_srv; 208 209 /* STUN sessions */210 pj_stun_session *tx_sess;211 pj_stun_session *rx_sess;212 210 }; 213 211 214 212 215 PJ_DECL(pj_status_t) pj_ice_create(pj_stun_config * cfg,213 PJ_DECL(pj_status_t) pj_ice_create(pj_stun_config *stun_cfg, 216 214 const char *name, 217 215 pj_ice_role role, … … 257 255 PJ_DECL(unsigned) pj_ice_get_cand_cnt(pj_ice *ice); 258 256 PJ_DECL(pj_status_t) pj_ice_enum_cands(pj_ice *ice, 259 unsigned sort_by,260 257 unsigned *p_count, 261 258 unsigned cand_ids[]); 262 PJ_DECL(unsigned) pj_ice_get_default_cand(pj_ice *ice, 263 int *cand_id); 259 PJ_DECL(pj_status_t) pj_ice_get_default_cand(pj_ice *ice, 260 unsigned comp_id, 261 int *cand_id); 264 262 PJ_DECL(pj_status_t) pj_ice_get_cand(pj_ice *ice, 265 263 unsigned cand_id, … … 267 265 268 266 PJ_DECL(pj_status_t) pj_ice_create_check_list(pj_ice *ice, 269 pj_bool_t is_remote_offer,270 267 unsigned rem_cand_cnt, 271 268 const pj_ice_cand rem_cand[]);
Note: See TracChangeset
for help on using the changeset viewer.