Ignore:
Timestamp:
Jun 28, 2006 4:46:49 PM (18 years ago)
Author:
bennylp
Message:

Major improvements in PJSIP to support TCP. The changes fall into these categories: (1) the TCP transport implementation itself (*.[hc]), (2) bug-fix in SIP transaction when using reliable transports, (3) support for TCP transport in PJSUA-LIB/PJSUA, and (4) changes in PJSIP-TEST to support TCP testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test-pjsip/test.h

    r555 r563  
    3232#define INCLUDE_TSX_GROUP           1 
    3333 
     34/* 
     35 * Include tests that normally would fail under certain gcc 
     36 * optimization levels. 
     37 */ 
     38#ifndef INCLUDE_GCC_TEST 
     39#   define INCLUDE_GCC_TEST         0 
     40#endif 
    3441 
    3542 
     
    3744#define INCLUDE_MSG_TEST        INCLUDE_MESSAGING_GROUP 
    3845#define INCLUDE_TXDATA_TEST     INCLUDE_MESSAGING_GROUP 
     46#define INCLUDE_TSX_BENCH       INCLUDE_MESSAGING_GROUP 
    3947#define INCLUDE_UDP_TEST        INCLUDE_TRANSPORT_GROUP 
    4048#define INCLUDE_LOOP_TEST       INCLUDE_TRANSPORT_GROUP 
     49#define INCLUDE_TCP_TEST        INCLUDE_TRANSPORT_GROUP 
    4150#define INCLUDE_TSX_TEST        INCLUDE_TSX_GROUP 
    4251 
     
    4857int msg_err_test(void); 
    4958int txdata_test(void); 
     59int tsx_bench(void); 
    5060int transport_udp_test(void); 
    5161int transport_loop_test(void); 
    52 int tsx_basic_test(void); 
    53 int tsx_uac_test(void); 
    54 int tsx_uas_test(void); 
     62int transport_tcp_test(void); 
     63 
     64struct tsx_test_param 
     65{ 
     66    int type; 
     67    int port; 
     68    char *tp_type; 
     69}; 
     70 
     71int tsx_basic_test(struct tsx_test_param *param); 
     72int tsx_uac_test(struct tsx_test_param *param); 
     73int tsx_uas_test(struct tsx_test_param *param); 
    5574 
    5675/* Transport test helpers (transport_test.c). */ 
     
    5877int transport_send_recv_test( pjsip_transport_type_e tp_type, 
    5978                              pjsip_transport *ref_tp, 
    60                               char *target_url ); 
     79                              char *target_url, 
     80                              int *p_usec_rtt); 
    6181int transport_rt_test( pjsip_transport_type_e tp_type, 
    6282                       pjsip_transport *ref_tp, 
     
    6989/* Test utilities. */ 
    7090void app_perror(const char *msg, pj_status_t status); 
    71 int init_msg_logger(void); 
    72 int msg_logger_set_enabled(pj_bool_t enabled); 
     91int  init_msg_logger(void); 
     92int  msg_logger_set_enabled(pj_bool_t enabled); 
    7393void flush_events(unsigned duration); 
     94 
     95 
     96void report_ival(const char *name, int value, const char *valname, const char *desc); 
     97void report_sval(const char *name, const char* value, const char *valname, const char *desc); 
     98 
    7499 
    75100/* Settings. */ 
Note: See TracChangeset for help on using the changeset viewer.