Ignore:
Timestamp:
Jan 7, 2006 6:44:25 PM (18 years ago)
Author:
bennylp
Message:

Added test functions for UAC transaction

File:
1 edited

Legend:

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

    r107 r109  
    110110pjsip_transport_get_default_port_for_type(pjsip_transport_type_e type); 
    111111 
     112/** 
     113 * Get transport type name. 
     114 * 
     115 * @param t         Transport type. 
     116 * 
     117 * @return          Transport name. 
     118 */ 
     119PJ_DECL(const char*) pjsip_transport_get_type_name(pjsip_transport_type_e t); 
     120 
    112121 
    113122/***************************************************************************** 
     
    203212        /** The parsed message, if any. */ 
    204213        pjsip_msg               *msg; 
     214 
     215        /** Short description about the message.  
     216         *  Application should use #pjsip_rx_data_get_info() instead. 
     217         */ 
     218        char                    *info; 
    205219 
    206220        /** The Call-ID header as found in the message. */ 
     
    259273 
    260274}; 
     275 
     276/** 
     277 * Get printable information about the message in the rdata. 
     278 * 
     279 * @param rdata     The receive data buffer. 
     280 * 
     281 * @return          Printable information. 
     282 */ 
     283PJ_DECL(char*) pjsip_rx_data_get_info(pjsip_rx_data *rdata); 
    261284 
    262285 
     
    304327    char                 obj_name[PJ_MAX_OBJ_NAME]; 
    305328 
     329    /** Short information describing this buffer and the message in it.  
     330     *  Application should use #pjsip_tx_data_get_info() instead of 
     331     *  directly accessing this member. 
     332     */ 
     333    char                *info; 
     334 
    306335    /** For response message, this contains the reference to timestamp when  
    307336     *  the original request message was received. The value of this field 
     
    340369    void                *token; 
    341370    void               (*cb)(void*, pjsip_tx_data*, pj_ssize_t); 
     371 
     372    /** Transport information, only valid during on_tx_request() and  
     373     *  on_tx_response() callback. 
     374     */ 
     375    struct 
     376    { 
     377        pjsip_transport     *transport;     /**< Transport being used.  */ 
     378        pj_sockaddr          dst_addr;      /**< Destination address.   */ 
     379        int                  dst_addr_len;  /**< Length of address.     */ 
     380        char                 dst_name[16];  /**< Destination address.   */ 
     381        int                  dst_port;      /**< Destination port.      */ 
     382    } tp_info; 
    342383}; 
    343384 
     
    397438 */ 
    398439PJ_DECL(void) pjsip_tx_data_invalidate_msg( pjsip_tx_data *tdata ); 
     440 
     441/** 
     442 * Get short printable info about the transmit data. This will normally return 
     443 * short information about the message. 
     444 * 
     445 * @param tdata     The transmit buffer. 
     446 * 
     447 * @return          Null terminated info string. 
     448 */ 
     449PJ_DECL(char*) pjsip_tx_data_get_info( pjsip_tx_data *tdata ); 
    399450 
    400451 
     
    594645 * @param pool      Pool. 
    595646 * @param endpt     Endpoint instance. 
    596  * @param cb        Callback to receive incoming message. 
     647 * @param rx_cb     Callback to receive incoming message. 
     648 * @param tx_cb     Callback to be called before transport manager is sending 
     649 *                  outgoing message. 
    597650 * @param p_mgr     Pointer to receive the new transport manager. 
    598651 * 
     
    601654PJ_DECL(pj_status_t) pjsip_tpmgr_create( pj_pool_t *pool, 
    602655                                         pjsip_endpoint * endpt, 
    603                                          void (*cb)(pjsip_endpoint*, 
    604                                                     pj_status_t, 
    605                                                     pjsip_rx_data *), 
     656                                         void (*rx_cb)(pjsip_endpoint*, 
     657                                                       pj_status_t, 
     658                                                       pjsip_rx_data *), 
     659                                         pj_status_t (*tx_cb)(pjsip_endpoint*, 
     660                                                              pjsip_tx_data*), 
    606661                                         pjsip_tpmgr **p_mgr); 
    607662 
Note: See TracChangeset for help on using the changeset viewer.