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_udp_test.c

    r550 r563  
    3030int transport_udp_test(void) 
    3131{ 
    32     enum { SEND_RECV_LOOP = 2 }; 
     32    enum { SEND_RECV_LOOP = 8 }; 
    3333    pjsip_transport *udp_tp, *tp; 
    3434    pj_sockaddr_in addr, rem_addr; 
    3535    pj_str_t s; 
    3636    pj_status_t status; 
     37    unsigned rtt[SEND_RECV_LOOP], min_rtt; 
    3738    int i, pkt_lost; 
    3839 
     
    8081    for (i=0; i<SEND_RECV_LOOP; ++i) { 
    8182        status = transport_send_recv_test(PJSIP_TRANSPORT_UDP, tp,  
    82                                           "sip:alice@127.0.0.1:"TEST_UDP_PORT_STR); 
     83                                          "sip:alice@127.0.0.1:"TEST_UDP_PORT_STR, 
     84                                          &rtt[i]); 
    8385        if (status != 0) 
    8486            return status; 
    8587    } 
     88 
     89    min_rtt = 0xFFFFFFF; 
     90    for (i=0; i<SEND_RECV_LOOP; ++i) 
     91        if (rtt[i] < min_rtt) min_rtt = rtt[i]; 
     92 
     93    report_ival("udp-rtt-usec", min_rtt, "usec", 
     94                "Best UDP transport round trip time, in microseconds " 
     95                "(time from sending request until response is received. " 
     96                "Tests were performed on local machine only)"); 
     97 
    8698 
    8799    /* Multi-threaded round-trip test. */ 
Note: See TracChangeset for help on using the changeset viewer.