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/src/test-pjsip/transport_udp_test.c

    r107 r109  
    2222#include <pjlib.h> 
    2323 
     24#define THIS_FILE   "transport_udp_test.c" 
     25 
    2426 
    2527/* 
     
    3335    pj_str_t s; 
    3436    pj_status_t status; 
    35     int i; 
     37    int i, pkt_lost; 
    3638 
    3739    pj_sockaddr_in_init(&addr, NULL, TEST_UDP_PORT); 
     
    8587    /* Multi-threaded round-trip test. */ 
    8688    status = transport_rt_test(PJSIP_TRANSPORT_UDP, tp,  
    87                                "sip:alice@127.0.0.1:"TEST_UDP_PORT_STR); 
     89                               "sip:alice@127.0.0.1:"TEST_UDP_PORT_STR,  
     90                               &pkt_lost); 
    8891    if (status != 0) 
    8992        return status; 
     93 
     94    if (pkt_lost != 0) 
     95        PJ_LOG(3,(THIS_FILE, "   note: %d packet(s) was lost", pkt_lost)); 
    9096 
    9197    /* Check again that reference counter is 1. */ 
     
    101107        return -90; 
    102108 
     109    /* Flush events. */ 
     110    PJ_LOG(3,(THIS_FILE, "   Flushing events, 1 second...")); 
     111    flush_events(1000); 
    103112 
    104113    /* Done */ 
Note: See TracChangeset for help on using the changeset viewer.