(PECL libevent >= 0.0.1)
event_base_loop — Handle events
Starts event loop for the specified event base.
Valid event base resource.
Optional parameter, which can take any combination of EVLOOP_ONCE and EVLOOP_NONBLOCK.
event_base_loop() returns 0 on success, -1 on error and 1 if no events were registered.