Changeset 1126 for pjproject/trunk/pjnath/include/pjnath/ice_session.h
- Timestamp:
- Apr 2, 2007 11:30:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/ice_session.h
r1114 r1126 97 97 } pj_ice_cand_type; 98 98 99 100 /**101 * This enumeration describes the default preference for the ICE102 * candidate types as described by ICE standard.103 */104 enum pj_ice_type_pref105 {106 PJ_ICE_HOST_PREF = 126, /**< Preference value for host. */107 PJ_ICE_SRFLX_PREF = 100, /**< Preference value for SRFLX. */108 PJ_ICE_PRFLX_PREF = 110, /**< Preference value for PRFLX */109 PJ_ICE_RELAYED_PREF = 0 /**< Preference value for relay */110 };111 99 112 100 /** Forward declaration for pj_ice_sess */ … … 274 262 * Check priority. 275 263 */ 276 pj_ uint64_tprio;264 pj_timestamp prio; 277 265 278 266 /** … … 446 434 pj_ice_sess_role role; /**< ICE role. */ 447 435 pj_timestamp tie_breaker; /**< Tie breaker value */ 436 pj_uint8_t *prefs; /**< Type preference. */ 448 437 pj_bool_t is_complete; /**< Complete? */ 449 438 pj_status_t ice_status; /**< Error status. */ … … 567 556 568 557 /** 558 * Assign a custom preference values for ICE candidate types. By assigning 559 * custom preference value, application can control the order of candidates 560 * to be checked first. The default preference settings is to use 126 for 561 * host candidates, 100 for server reflexive candidates, 110 for peer 562 * reflexive candidates, an 0 for relayed candidates. 563 * 564 * Note that this function must be called before any candidates are added 565 * to the ICE session. 566 * 567 * @param ice The ICE session. 568 * @param prefs Array of candidate preference value. The values are 569 * put in the array indexed by the candidate type as 570 * specified in pj_ice_cand_type. 571 * 572 * @return PJ_SUCCESS on success, or the appropriate error code. 573 */ 574 PJ_DECL(pj_status_t) pj_ice_sess_set_prefs(pj_ice_sess *ice, 575 const pj_uint8_t prefs[4]); 576 577 578 579 /** 569 580 * Add a candidate to this ICE session. Application must add candidates for 570 581 * each components ID before it can start pairing the candidates and … … 596 607 unsigned *p_cand_id); 597 608 609 #if 0 610 /* Temporarily disabled to reduce size, since we don't need this yet */ 611 598 612 /** 599 613 * Find default candidate for the specified component ID, using this … … 613 627 unsigned comp_id, 614 628 int *p_cand_id); 629 #endif 615 630 616 631 /**
Note: See TracChangeset
for help on using the changeset viewer.