Ignore:
Timestamp:
Feb 20, 2017 1:16:58 AM (3 years ago)
Author:
ming
Message:

Closed #1995: Add API pjsip_transport_shutdown2() to immediately disconnect a transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transport.h

    r5308 r5556  
    904904 
    905905/** 
     906 * Start shutdown procedure for this transport. If \a force is false, 
     907 * the API is the same as #pjsip_transport_shutdown(), while 
     908 * if \a force is true, existing transport users will immediately 
     909 * receive PJSIP_TP_STATE_DISCONNECTED notification and should not 
     910 * use the transport anymore. In either case, transport will 
     911 * only be destroyed after all objects release their references. 
     912 * 
     913 * @param tp                The transport. 
     914 * @param force             Force transport to immediately send 
     915 *                          disconnection state notification. 
     916 * 
     917 * @return                  PJ_SUCCESS on success. 
     918 */ 
     919PJ_DECL(pj_status_t) pjsip_transport_shutdown2(pjsip_transport *tp, 
     920                                               pj_bool_t force); 
     921 
     922/** 
    906923 * Destroy a transport when there is no object currently uses the transport. 
    907924 * This function is normally called internally by transport manager or the 
Note: See TracChangeset for help on using the changeset viewer.