Ignore:
Timestamp:
Mar 26, 2007 1:25:07 PM (17 years ago)
Author:
bennylp
Message:

ICE: implement RTCP component and cancelling check in progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_session.c

    r1099 r1106  
    678678} 
    679679 
     680/* 
     681 * Cancel outgoing STUN transaction.  
     682 */ 
     683PJ_DEF(pj_status_t) pj_stun_session_cancel_req( pj_stun_session *sess, 
     684                                                pj_stun_tx_data *tdata, 
     685                                                pj_bool_t notify, 
     686                                                pj_status_t notify_status) 
     687{ 
     688    PJ_ASSERT_RETURN(sess && tdata, PJ_EINVAL); 
     689    PJ_ASSERT_RETURN(!notify || notify_status!=PJ_SUCCESS, PJ_EINVAL); 
     690    PJ_ASSERT_RETURN(PJ_STUN_IS_REQUEST(tdata->msg->hdr.type), PJ_EINVAL); 
     691 
     692    pj_mutex_lock(sess->mutex); 
     693 
     694    if (notify) { 
     695        (sess->cb.on_request_complete)(sess, notify_status, tdata, NULL); 
     696    } 
     697 
     698    /* Just destroy tdata. This will destroy the transaction as well */ 
     699    pj_stun_msg_destroy_tdata(sess, tdata); 
     700 
     701    pj_mutex_unlock(sess->mutex); 
     702    return PJ_SUCCESS; 
     703 
     704} 
    680705 
    681706/* Send response */ 
Note: See TracChangeset for help on using the changeset viewer.