event_base_free
event_base_loopbreak
Libevent 関数
PHP Manual

# event_base_loop

(PECL libevent >= 0.0.1)

event_base_loop — Handle events

### 説明

int event_base_loop ( resource `$event_base` [, int `$flags` = 0 ] )

Starts event loop for the specified event base.

### パラメータ

`event_base`

  Valid event base resource.

`flags`

  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.

event_base_free
event_base_loopbreak
Libevent 関数
PHP Manual