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

    r547 r563  
    174174int transport_send_recv_test( pjsip_transport_type_e tp_type, 
    175175                              pjsip_transport *ref_tp, 
    176                               char *target_url ) 
     176                              char *target_url, 
     177                              int *p_usec_rtt) 
    177178{ 
    178179    pj_bool_t msg_log_enabled; 
     
    221222 
    222223    /* Send the message (statelessly). */ 
     224    PJ_LOG(5,(THIS_FILE, "Sending request to %.*s",  
     225                         (int)target.slen, target.ptr)); 
    223226    status = pjsip_endpt_send_request_stateless( endpt, tdata, NULL, 
    224227                                                 &send_msg_callback); 
     
    229232    } 
    230233 
    231     /* Set the timeout (1 second from now) */ 
     234    /* Set the timeout (2 seconds from now) */ 
    232235    pj_gettimeofday(&timeout); 
    233     timeout.sec += 1; 
     236    timeout.sec += 2; 
    234237 
    235238    /* Loop handling events until we get status */ 
     
    269272        unsigned usec_rt; 
    270273        usec_rt = pj_elapsed_usec(&my_send_time, &my_recv_time); 
     274 
    271275        PJ_LOG(3,(THIS_FILE, "    round-trip = %d usec", usec_rt)); 
     276 
     277        *p_usec_rtt = usec_rt; 
    272278    } 
    273279 
     
    517523    unsigned total_recv; 
    518524 
    519  
    520525    PJ_LOG(3,(THIS_FILE, "  multithreaded round-trip test (%d threads)...", 
    521526                  THREADS)); 
Note: See TracChangeset for help on using the changeset viewer.