event_base_loop Handle events &reftitle.description; intevent_base_loop resourceevent_base intflags0 Starts event loop for the specified event base. &reftitle.parameters; event_base Valid event base resource. flags Optional parameter, which can take any combination of EVLOOP_ONCE and EVLOOP_NONBLOCK. &reftitle.returnvalues; event_base_loop returns 0 on success, -1 on error and 1 if no events were registered.