array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'eventbufferevent.construct.php', 1 => 'EventBufferEvent::__construct', ), 'up' => array ( 0 => 'class.eventbufferevent.php', 1 => 'EventBufferEvent', ), 'prev' => array ( 0 => 'eventbufferevent.connecthost.php', 1 => 'EventBufferEvent::connectHost', ), 'next' => array ( 0 => 'eventbufferevent.createpair.php', 1 => 'EventBufferEvent::createPair', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventbufferevent/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventBufferEvent::__construct — Constructs EventBufferEvent object
$base
,$socket
= null
,$options
= 0
,$readcb
= null
,$writecb
= null
,$eventcb
= null
,$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()
.
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.