Ignore:
Timestamp:
Mar 12, 2008 8:52:16 PM (16 years ago)
Author:
bennylp
Message:

More ticket #485: implementation of TURN UDP client session

File:
1 edited

Legend:

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

    r1852 r1862  
    113113     *                      response may contain non-NULL value if the  
    114114     *                      response contains STUN ERROR-CODE attribute. 
    115      * @param request       The original STUN request. 
     115     * @param tdata         The original STUN request. 
    116116     * @param response      The response message, on successful transaction, 
    117117     *                      or otherwise MAY BE NULL if status is not success. 
     
    223223 */ 
    224224PJ_DECL(void*) pj_stun_session_get_user_data(pj_stun_session *sess); 
     225 
     226/** 
     227 * Change the lock object used by the STUN session. By default, the STUN 
     228 * session uses a mutex to protect its internal data. If application already 
     229 * protects access to STUN session with higher layer lock, it may disable 
     230 * the mutex protection in the STUN session by changing the STUN session 
     231 * lock to a NULL mutex. 
     232 * 
     233 * @param sess      The STUN session instance. 
     234 * @param lock      New lock instance to be used by the STUN session. 
     235 * @param auto_del  Specify whether STUN session should destroy this 
     236 *                  lock instance when it's destroyed. 
     237 */ 
     238PJ_DECL(pj_status_t) pj_stun_session_set_lock(pj_stun_session *sess, 
     239                                              pj_lock_t *lock, 
     240                                              pj_bool_t auto_del); 
    225241 
    226242/** 
Note: See TracChangeset for help on using the changeset viewer.