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/tsx_basic_test.c

    r127 r563  
    2424#define THIS_FILE   "tsx_basic_test.c" 
    2525 
     26static char TARGET_URI[128]; 
     27static char FROM_URI[128]; 
     28 
     29 
    2630/* Test transaction layer. */ 
    2731static int tsx_layer_test(void) 
     
    3438    PJ_LOG(3,(THIS_FILE, "  transaction layer test")); 
    3539 
    36     target = pj_str("sip:alice@localhost"); 
    37     from = pj_str("sip:bob@localhost"); 
     40    target = pj_str(TARGET_URI); 
     41    from = pj_str(FROM_URI); 
    3842 
    3943    status = pjsip_endpt_create_request(endpt, &pjsip_invite_method, &target, 
     
    7882    PJ_LOG(3,(THIS_FILE, "  double terminate test")); 
    7983 
    80     target = pj_str("sip:alice@localhost;transport=loop-dgram"); 
    81     from = pj_str("sip:bob@localhost"); 
     84    target = pj_str(TARGET_URI); 
     85    from = pj_str(FROM_URI); 
    8286 
    8387    /* Create request. */ 
     
    132136} 
    133137 
    134 int tsx_basic_test(void) 
     138int tsx_basic_test(struct tsx_test_param *param) 
    135139{ 
    136140    int status; 
     141 
     142    pj_ansi_sprintf(TARGET_URI, "sip:bob@127.0.0.1:%d;transport=%s",  
     143                    param->port, param->tp_type); 
     144    pj_ansi_sprintf(FROM_URI, "sip:alice@127.0.0.1:%d;transport=%s",  
     145                    param->port, param->tp_type); 
    137146 
    138147    status = tsx_layer_test(); 
Note: See TracChangeset for help on using the changeset viewer.