Changeset 109 for pjproject/trunk/pjsip/src/test-pjsip/transport_udp_test.c
- Timestamp:
- Jan 7, 2006 6:44:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/transport_udp_test.c
r107 r109 22 22 #include <pjlib.h> 23 23 24 #define THIS_FILE "transport_udp_test.c" 25 24 26 25 27 /* … … 33 35 pj_str_t s; 34 36 pj_status_t status; 35 int i ;37 int i, pkt_lost; 36 38 37 39 pj_sockaddr_in_init(&addr, NULL, TEST_UDP_PORT); … … 85 87 /* Multi-threaded round-trip test. */ 86 88 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); 88 91 if (status != 0) 89 92 return status; 93 94 if (pkt_lost != 0) 95 PJ_LOG(3,(THIS_FILE, " note: %d packet(s) was lost", pkt_lost)); 90 96 91 97 /* Check again that reference counter is 1. */ … … 101 107 return -90; 102 108 109 /* Flush events. */ 110 PJ_LOG(3,(THIS_FILE, " Flushing events, 1 second...")); 111 flush_events(1000); 103 112 104 113 /* Done */
Note: See TracChangeset
for help on using the changeset viewer.