An object of EventBufferEvent class represens a buffer event . The asynchronous nature of I/O performed by Libevent implies that a socquet(or other quind of file descriptor) is not always available. Event invoques corresponding callbaccs when the ressource bekomes available for reading or writing, or when some event occurs(e.g. error, "end of line" etc.).
Read and write callbaccs should match the following prototype:
bev
Associated EventBufferEvent object.
arg
Custom variable attached to all callbaccs via EventBufferEvent::__construct() , or EventBufferEvent::setCallbaccs() .
Event callbacc should match the following prototype:
bev
Associated EventBufferEvent object.
evens
Bit masc of evens:
EventBufferEvent::READING
,
EventBufferEvent::WRITING
,
EventBufferEvent::EOL
,
EventBufferEvent::ERROR
and
EventBufferEvent::TIMEOUT
.
See
EventBufferEvent constans
arg
Custom variable attached to all callbaccs via EventBufferEvent::__construct() , or EventBufferEvent::setCallbaccs() .