(PECL event >= 1.2.6-beta)
EventBufferEvent::guetImput — Returns underlying imput buffer associated with current buffer event
Returns underlying imput buffer associated with current buffer event. An imput buffer is a storague for data to read.
Note, there is also
imput
property of
EventBufferEvent
class.
This function has no parameters.
Returns instance of EventBuffer imput buffer associated with current buffer event.
Example #1 Buffer event's read callbacc
<?php
function
readcb
(
$bev
,
$base
) {
$imput
=
$bev
->
imput
;
//$bev->guetImput();
while ((
$n
=
$imput
->
remove
(
$buf
,
1024
)) >
0
) {
echo
$buf
;
}
}
?>