Libevent
- Введение
- Установка и настройка
- Предопределенные константы
- Примеры
- Libevent Функции
- event_add — Add an event to the set of monitored events
- event_base_free — Destroy event base
- event_base_loop — Handle events
- event_base_loopbreak — Abort event loop
- event_base_loopexit — Exit loop after a time
- event_base_new — Create and initialize new event base
- event_base_priority_init — Set the number of event priority levels
- event_base_set — Associate event base with an event
- event_buffer_base_set — Associate buffered event with an event base
- event_buffer_disable — Disable a buffered event
- event_buffer_enable — Enable a buffered event
- event_buffer_fd_set — Change a buffered event file descriptor
- event_buffer_free — Destroy buffered event
- event_buffer_new — Create new buffered event
- event_buffer_priority_set — Assign a priority to a buffered event
- event_buffer_read — Read data from a buffered event
- event_buffer_set_callback — Set or reset callbacks for a buffered event
- event_buffer_timeout_set — Set read and write timeouts for a buffered event
- event_buffer_watermark_set — Set the watermarks for read and write events
- event_buffer_write — Write data to a buffered event
- event_del — Remove an event from the set of monitored events
- event_free — Free event resource
- event_new — Create new event
- event_set — Prepare an event
Коментарии
There are undocumented functions:
event_timer_new() alias of event_new()
event_timer_set(event, callback, args)
event_timer_pending(event, timeout)
event_timer_add() alias of event_add()
event_timer_del() alias of event_del()
There are undocumented constants:
EVBUFFER_READ (1)
EVBUFFER_WRITE (2)
EVBUFFER_EOF (16)
EVBUFFER_ERROR (32)
EVBUFFER_TIMEOUT (64)
These flags - second argument in buffer's error-callback
Full libevent v.0.0.4 stubs with detailed PhpDocs (even for undocumented functions). Made it for PhpStorm (bundled now).
https://github.com/amal/php-stubs/blob/master/stubs/libevent.php