Changeset 5170 for pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
r4537 r5170 264 264 // Poll if pending. 265 265 while (send_pending || recv_pending) { 266 int r c;266 int ret; 267 267 pj_time_val timeout = { 5, 0 }; 268 268 269 269 TRACE_("poll..."); 270 270 #ifdef PJ_SYMBIAN 271 r c= pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout));271 ret = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 272 272 #else 273 r c= pj_ioqueue_poll(ioque, &timeout);273 ret = pj_ioqueue_poll(ioque, &timeout); 274 274 #endif 275 275 276 if (r c== 0) {276 if (ret == 0) { 277 277 PJ_LOG(1,(THIS_FILE, "...ERROR: timed out...")); 278 278 status=-45; goto on_error; 279 } else if (r c< 0) {280 app_perror("...ERROR in ioqueue_poll()", -r c);279 } else if (ret < 0) { 280 app_perror("...ERROR in ioqueue_poll()", -ret); 281 281 status=-50; goto on_error; 282 282 }
Note: See TracChangeset
for help on using the changeset viewer.