Ignore:
Timestamp:
Jan 12, 2007 6:37:35 AM (18 years ago)
Author:
bennylp
Message:

Workaround for ticket #50: added API to lock/bind transaction, dialog, and regc to a specific transport/listener

File:
1 edited

Legend:

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

    r797 r879  
    353353/** 
    354354 * Find a SIP transport suitable for sending SIP message to the specified 
    355  * address. This function will complete asynchronously when the transport is 
    356  * ready (for example, when TCP socket is connected), and when it completes, 
    357  * the callback will be called with the status of the operation. 
    358  * 
    359  * @see pjsip_transport_get 
     355 * address. If transport selector ("sel") is set, then the function will 
     356 * check if the transport selected is suitable to send requests to the 
     357 * specified address. 
     358 * 
     359 * @see pjsip_tpmgr_acquire_transport 
     360 * 
     361 * @param endpt     The SIP endpoint instance. 
     362 * @param type      The type of transport to be acquired. 
     363 * @param remote    The remote address to send message to. 
     364 * @param addr_len  Length of the remote address. 
     365 * @param sel       Optional pointer to transport selector instance which is 
     366 *                  used to find explicit transport, if required. 
     367 * @param p_tp      Pointer to receive the transport instance, if one is found. 
     368 * 
     369 * @return          PJ_SUCCESS on success, or the appropriate error code. 
    360370 */ 
    361371PJ_DECL(pj_status_t)  
     
    364374                               const pj_sockaddr_t *remote, 
    365375                               int addr_len, 
    366                                pjsip_transport **p_transport); 
     376                               const pjsip_tpselector *sel, 
     377                               pjsip_transport **p_tp); 
    367378 
    368379 
Note: See TracChangeset for help on using the changeset viewer.