Changeset 563 for pjproject/trunk/pjsip/src/test-pjsip/transport_test.c
- Timestamp:
- Jun 28, 2006 4:46:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/transport_test.c
r547 r563 174 174 int transport_send_recv_test( pjsip_transport_type_e tp_type, 175 175 pjsip_transport *ref_tp, 176 char *target_url ) 176 char *target_url, 177 int *p_usec_rtt) 177 178 { 178 179 pj_bool_t msg_log_enabled; … … 221 222 222 223 /* Send the message (statelessly). */ 224 PJ_LOG(5,(THIS_FILE, "Sending request to %.*s", 225 (int)target.slen, target.ptr)); 223 226 status = pjsip_endpt_send_request_stateless( endpt, tdata, NULL, 224 227 &send_msg_callback); … … 229 232 } 230 233 231 /* Set the timeout ( 1 secondfrom now) */234 /* Set the timeout (2 seconds from now) */ 232 235 pj_gettimeofday(&timeout); 233 timeout.sec += 1;236 timeout.sec += 2; 234 237 235 238 /* Loop handling events until we get status */ … … 269 272 unsigned usec_rt; 270 273 usec_rt = pj_elapsed_usec(&my_send_time, &my_recv_time); 274 271 275 PJ_LOG(3,(THIS_FILE, " round-trip = %d usec", usec_rt)); 276 277 *p_usec_rtt = usec_rt; 272 278 } 273 279 … … 517 523 unsigned total_recv; 518 524 519 520 525 PJ_LOG(3,(THIS_FILE, " multithreaded round-trip test (%d threads)...", 521 526 THREADS));
Note: See TracChangeset
for help on using the changeset viewer.