ConFoo: Call for paper is now Open

Libevent

add a note add a note

User Contributed Notes 4 notes

up
2
ddouble dot cn at gmail dot com
2 years ago
notice: undocument function event_timer_add(ev, time)

// add a timer which will be timeout after 5 second.
event_timer_add(ev, 5000000);
up
0
johannes
8 months ago
More undocumented functions:

event_priority_set(event, priority)

See the libevent book (http://www.wangafu.net/~nickm/libevent-book/Ref4_event.html) for details on event priorities.
up
0
amal dot samally at gmail dot com
1 year ago
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
up
0
aco dot best at gmail dot com
3 years ago
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
To Top