Changeset 248
- Timestamp:
- Feb 27, 2006 11:54:58 PM (19 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_endpoint.h
r230 r248 109 109 * @param max_timeout Maximum time to wait for events, or NULL to wait forever 110 110 * until event is received. 111 */ 112 PJ_DECL(void) pjsip_endpt_handle_events( pjsip_endpoint *endpt, 113 const pj_time_val *max_timeout); 111 * 112 * @return PJ_SUCCESS on success. 113 */ 114 PJ_DECL(pj_status_t) pjsip_endpt_handle_events( pjsip_endpoint *endpt, 115 const pj_time_val *max_timeout); 114 116 115 117 -
pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c
r235 r248 66 66 pj_ioqueue_t *ioqueue; 67 67 68 /** Last ioqueue err */ 69 pj_status_t ioq_last_err; 70 68 71 /** DNS Resolver. */ 69 72 pjsip_resolver_t *resolver; … … 590 593 * Handle events. 591 594 */ 592 PJ_DEF( void) pjsip_endpt_handle_events(pjsip_endpoint *endpt,593 const pj_time_val *max_timeout)595 PJ_DEF(pj_status_t) pjsip_endpt_handle_events(pjsip_endpoint *endpt, 596 const pj_time_val *max_timeout) 594 597 { 595 598 /* timeout is 'out' var. This just to make compiler happy. */ … … 612 615 613 616 /* Poll ioqueue. */ 614 pj_ioqueue_poll( endpt->ioqueue, &timeout); 617 if (pj_ioqueue_poll( endpt->ioqueue, &timeout) < 0) { 618 pj_thread_sleep(1); 619 return pj_get_netos_error(); 620 } else { 621 return PJ_SUCCESS; 622 } 615 623 } 616 624
Note: See TracChangeset
for help on using the changeset viewer.