Ignore:
Timestamp:
Apr 3, 2007 6:01:27 PM (17 years ago)
Author:
bennylp
Message:

Fixed misc bugs with ICE: (1) moved STUN session from candidate to component since it causes STUN response to wrong session, and (2) keep-alive transaction timed-out when ICE is active

File:
1 edited

Legend:

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

    r1110 r1140  
    9191                               pj_size_t pkt_size); 
    9292 
     93    /** 
     94     * This callback is called after the timer that was scheduled by 
     95     * #pj_stun_client_tsx_schedule_destroy() has elapsed. Application 
     96     * should call #pj_stun_client_tsx_destroy() upon receiving this 
     97     * callback. 
     98     * 
     99     * This callback is optional if application will not call  
     100     * #pj_stun_client_tsx_schedule_destroy(). 
     101     * 
     102     * @param tsx           The STUN transaction instance. 
     103     */ 
     104    void (*on_destroy)(pj_stun_client_tsx *tsx); 
     105 
    93106} pj_stun_tsx_cb; 
    94107 
     
    117130 
    118131/** 
    119  * Destroy a STUN client transaction. 
     132 * Schedule timer to destroy the transaction after the transaction is  
     133 * complete. Application normally calls this function in the on_complete() 
     134 * callback. When this timer elapsed, the on_destroy() callback will be  
     135 * called. 
     136 * 
     137 * This is convenient to let the STUN transaction absorbs any response  
     138 * for the previous request retransmissions. If application doesn't want 
     139 * this, it can destroy the transaction immediately by calling  
     140 * #pj_stun_client_tsx_destroy(). 
     141 * 
     142 * @param tsx           The STUN transaction. 
     143 * @param delay         The delay interval before on_destroy() callback 
     144 *                      is called. 
     145 * 
     146 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     147 */ 
     148PJ_DECL(pj_status_t)  
     149pj_stun_client_tsx_schedule_destroy(pj_stun_client_tsx *tsx, 
     150                                    const pj_time_val *delay); 
     151 
     152 
     153/** 
     154 * Destroy a STUN client transaction immediately. This function can be  
     155 * called at any time to stop the transaction and destroy it. 
    120156 * 
    121157 * @param tsx           The STUN transaction. 
Note: See TracChangeset for help on using the changeset viewer.