About buffer event callbacks
An 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:
-
bev
-
Associated EventBufferEvent object.
-
arg
-
Custom variable attached to all callbacks via EventBufferEvent::__construct() , or EventBufferEvent::setCallbacks() .
Event callback should match the following prototype:
-
bev
-
Associated EventBufferEvent object.
-
events
-
Bit mask of events:
EventBufferEvent::READING
,EventBufferEvent::WRITING
,EventBufferEvent::EOL
,EventBufferEvent::ERROR
andEventBufferEvent::TIMEOUT
. See EventBufferEvent constants -
arg
-
Custom variable attached to all callbacks via EventBufferEvent::__construct() , or EventBufferEvent::setCallbacks() .
- Введение
- Установка и настройка
- Примеры
- Event flags
- About event persistence
- Event callbacks
- Constructing signal events
- The Event class
- The EventBase class
- The EventBuffer class
- The EventBufferEvent class
- About buffer event callbacks
- The EventConfig class
- The EventDnsBase class
- The EventHttp class
- The EventHttpConnection class
- The EventHttpRequest class
- The EventListener class
- The EventSslContext class
- The EventUtil class
Коментарии
404 Not Found