|
About buffer event callbacksAn object of EventBufferEvent class represents a buffer event . The asynchronous nature of I/O performed by Libevent implies that a socket(or other kind of file descriptor) is not always available. Event invokes corresponding callbacks when the resource becomes available for reading or writing, or when some event occurs(e.g. error, "end of line" etc.). Read and write callbacks should match the following prototype:
void callback(
EventBufferEvent
$bev
= null
,
mixed
$arg
= null
)
Event callback should match the following prototype:
void callback(
EventBufferEvent
$bev
= null
,
int
$events
= 0
,
mixed
$arg
= null
)
|