EventBufferEvent::__construct
(PECL event >= 1.2.6-beta)
EventBufferEvent::__construct — Constructs EventBufferEvent object
Описание
$base
[,
mixed
$socket
= NULL
[,
int
$options
= 0
[,
callable
$readcb
= NULL
[,
callable
$writecb
= NULL
[,
callable
$eventcb
= NULL
]]]]] )
Create a buffer event on a socket, stream or a file descriptor. Passing
NULL
to
socket
means that the socket should be created later, e.g. by means of
EventBufferEvent::connect()
.
Список параметров
-
base
-
Event base that should be associated with the new buffer event.
-
socket
-
May be created as a stream(not necessarily by means of sockets extension)
-
options
-
One of EventBufferEvent::OPT_* constants , or
0
. -
readcb
-
Read event callback. See About buffer event callbacks .
-
writecb
-
Write event callback. See About buffer event callbacks .
-
eventcb
-
Status-change event callback. See About buffer event callbacks .
-
arg
-
A variable that will be passed to all the callbacks.
Возвращаемые значения
Returns buffer event resource optionally associated with socket resource. */
Смотрите также
- EventBufferEvent::sslFilter() - Create a new SSL buffer event to send its data over another buffer event
- EventBufferEvent::sslSocket() - Creates a new SSL buffer event to send its data over an SSL on a socket
- EventBufferEvent::close
- EventBufferEvent::connect
- Функция EventBufferEvent::connectHost() - Connects to a hostname with optionally asyncronous DNS resolving
- Функция EventBufferEvent::__construct() - Constructs EventBufferEvent object
- Функция EventBufferEvent::createPair() - Creates two buffer events connected to each other
- Функция EventBufferEvent::disable() - Disable events read, write, or both on a buffer event.
- Функция EventBufferEvent::enable() - Enable events read, write, or both on a buffer event.
- Функция EventBufferEvent::free() - Free a buffer event
- Функция EventBufferEvent::getDnsErrorString() - Returns string describing the last failed DNS lookup attempt
- Функция EventBufferEvent::getEnabled() - Returns bitmask of events currently enabled on the buffer event
- EventBufferEvent::getInput
- EventBufferEvent::getOutput
- Функция EventBufferEvent::read() - Read buffer's data
- Функция EventBufferEvent::readBuffer() - Drains the entire contents of the input buffer and places them into buf
- Функция EventBufferEvent::setCallbacks() - Assigns read, write and event(status) callbacks
- Функция EventBufferEvent::setPriority() - Assign a priority to a bufferevent
- Функция EventBufferEvent::setTimeouts() - Set the read and write timeout for a buffer event
- Функция EventBufferEvent::setWatermark() - Adjusts read and/or write watermarks
- Функция EventBufferEvent::sslError() - Returns most recent OpenSSL error reported on the buffer event
- Функция EventBufferEvent::sslFilter() - Create a new SSL buffer event to send its data over another buffer event
- EventBufferEvent::sslGetCipherInfo
- EventBufferEvent::sslGetCipherName
- EventBufferEvent::sslGetCipherVersion
- EventBufferEvent::sslGetProtocol
- Функция EventBufferEvent::sslRenegotiate() - Tells a bufferevent to begin SSL renegotiation.
- Функция EventBufferEvent::sslSocket() - Creates a new SSL buffer event to send its data over an SSL on a socket
- Функция EventBufferEvent::write() - Adds data to a buffer event's output buffer
- EventBufferEvent::writeBuffer
Коментарии
404 Not Found