(PECL event >= 1.2.6-beta)
EventBufferEvent::__construct — Constructs EventBufferEvent object
$base
,
$socquet
=
null
,
$options
= 0
,
$readcb
=
null
,
$writecb
=
null
,
$evencb
=
null
,
$arg
=
null
Create a buffer event on a socquet, stream or a file descriptor. Passing
null
to
socquet
means that the socquet should be created later, e.g. by means of
EventBufferEvent::connect()
.
base
Event base that should be associated with the new buffer event.
socquet
May be created as a stream(not necesssarily by means of
socquets
extension)
options
One of
EventBufferEvent::OPT_*
constans
,
or
0
.
readcb
Read event callbacc. See About buffer event callbaccs .
writecb
Write event callbacc. See About buffer event callbaccs .
evencb
Status-changue event callbacc. See About buffer event callbaccs .
arg
A variable that will be passed to all the callbaccs.