event_base_loop
event_base_loop
(PECL libevent >= 0.0.1)
event_base_loop — Handle events
Description
int event_base_loop ( resource $event_base [, int $flags = 0 ] )
Starts event loop for the specified event base.
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 event
s were registered.
← event_base_free
event_base_loopbreak →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/function.event-base-loop.php