Ignore:
Timestamp:
Apr 5, 2007 11:32:47 AM (17 years ago)
Author:
bennylp
Message:

ICE (work in progress): handle early check that is received before answer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/ice_session.h

    r1141 r1152  
    420420 
    421421/** 
     422 * This structure represents an incoming check (an incoming Binding 
     423 * request message), and is mainly used to keep early checks in the 
     424 * list in the ICE session. An early check is a request received 
     425 * from remote when we haven't received SDP answer yet, therefore we 
     426 * can't perform triggered check. For such cases, keep the incoming 
     427 * request in a list, and we'll do triggered checks (simultaneously) 
     428 * as soon as we receive answer. 
     429 */ 
     430typedef struct pj_ice_rx_check 
     431{ 
     432    PJ_DECL_LIST_MEMBER(struct pj_ice_rx_check); 
     433 
     434    unsigned             comp_id;       /**< Component ID.              */ 
     435 
     436    pj_sockaddr          src_addr;      /**< Source address of request  */ 
     437    unsigned             src_addr_len;  /**< Length of src address.     */ 
     438 
     439    pj_bool_t            use_candidate; /**< USE-CANDIDATE is present?  */ 
     440    pj_uint32_t          priority;      /**< PRIORITY value in the req. */ 
     441    pj_stun_uint64_attr *role_attr;     /**< ICE-CONTROLLING/CONTROLLED */ 
     442 
     443} pj_ice_rx_check; 
     444 
     445 
     446/** 
    422447 * This structure describes the ICE session. For this version of PJNATH, 
    423448 * an ICE session corresponds to a single media stream (unlike the ICE 
     
    463488    unsigned             rcand_cnt;                 /**< # of remote cand.  */ 
    464489    pj_ice_sess_cand     rcand[PJ_ICE_MAX_CAND];    /**< Array of cand.     */ 
     490 
     491    /* List of eearly checks */ 
     492    pj_ice_rx_check      early_check;               /**< Early checks.      */ 
    465493 
    466494    /* Checklist */ 
Note: See TracChangeset for help on using the changeset viewer.