event_base_loop
Handle events
Description
int event_base_loop
( resource $event_base
[, int $flags
= 0
] )
Parameters
-
event_base
-
Valid event base resource.
-
flags
-
Optional parameter, which can take any combination of
EVLOOP_ONCE
and EVLOOP_NONBLOCK
.
Return Values
event_base_loop returns 0 on success, -1 on error and
1 if no events were registered.