EventBufferEvent::__construct
(PECL event >= 1.2.6-beta)
EventBufferEvent::__construct — Constructs EventBufferEvent object
Description
public EventBufferEvent::__construct(
EventBase
mixed
int
callable
callable
callable
mixed
)
EventBase
$base ,mixed
$socket = null ,int
$options = 0 ,callable
$readcb = null ,callable
$writecb = null ,callable
$eventcb = null ,mixed
$arg = 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().
Parameters
baseEvent base that should be associated with the new buffer event.
socketMay be created as a stream(not necessarily by means of
socketsextension)optionsOne of EventBufferEvent::OPT_* constants, or
0.readcbRead event callback. See About buffer event callbacks.
writecbWrite event callback. See About buffer event callbacks.
eventcbStatus-change event callback. See About buffer event callbacks.
argA variable that will be passed to all the callbacks.
See Also
- 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
↑ and ↓ to navigate • Enter to select • Esc to close • / to open