Ignore:
Timestamp:
Dec 30, 2005 11:50:15 PM (18 years ago)
Author:
bennylp
Message:

Basic module, transport, and sending messages

File:
1 edited

Legend:

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

    r105 r106  
    368368/** 
    369369 * Decrement reference counter of the transmit buffer. 
    370  * When the transmit buffer is no longer used, it will be destroyed. 
     370 * When the transmit buffer is no longer used, it will be destroyed and 
     371 * caller is informed with PJSIP_EBUFDESTROYED return status. 
    371372 * 
    372373 * @param tdata     The transmit buffer data. 
    373  */ 
    374 PJ_DECL(void) pjsip_tx_data_dec_ref( pjsip_tx_data *tdata ); 
     374 * @return          This function will always succeeded eventhough the return 
     375 *                  status is non-zero. A status PJSIP_EBUFDESTROYED will be 
     376 *                  returned to inform that buffer is destroyed. 
     377 */ 
     378PJ_DECL(pj_status_t) pjsip_tx_data_dec_ref( pjsip_tx_data *tdata ); 
    375379 
    376380/** 
     
    378382 * 
    379383 * @param tdata     The transmit buffer. 
     384 * @return          Non-zero (PJ_TRUE) if buffer contains a valid message. 
    380385 */ 
    381386PJ_DECL(pj_bool_t) pjsip_tx_data_is_valid( pjsip_tx_data *tdata ); 
     
    543548    /** 
    544549     * Create new outbound connection. 
     550     * Note that the factory is responsible for both creating the 
     551     * transport and registering it to the transport manager. 
    545552     */ 
    546553    pj_status_t (*create_transport)(pjsip_tpfactory *factory, 
     
    548555                                    pjsip_endpoint *endpt, 
    549556                                    const pj_sockaddr *rem_addr, 
     557                                    int addr_len, 
    550558                                    pjsip_transport **transport); 
    551559 
     
    622630 * suitable transport is found, a new one will be created. 
    623631 */ 
    624 PJ_DECL(pj_status_t) pjsip_tpmgr_alloc_transport( pjsip_tpmgr *mgr, 
    625                                                   pjsip_transport_type_e type, 
    626                                                   const pj_sockaddr_t *remote, 
    627                                                   int addr_len, 
    628                                                   pjsip_transport **p_transport ); 
     632PJ_DECL(pj_status_t) pjsip_tpmgr_acquire_transport(pjsip_tpmgr *mgr, 
     633                                                   pjsip_transport_type_e type, 
     634                                                   const pj_sockaddr_t *remote, 
     635                                                   int addr_len, 
     636                                                   pjsip_transport **tp); 
    629637 
    630638 
Note: See TracChangeset for help on using the changeset viewer.