array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'eventbuffer.readfrom.php', 1 => 'EventBuffer::readFrom', 2 => 'Read data from a file onto the end of the buffer', ), 'up' => array ( 0 => 'class.eventbuffer.php', 1 => 'EventBuffer', ), 'prev' => array ( 0 => 'eventbuffer.read.php', 1 => 'EventBuffer::read', ), 'next' => array ( 0 => 'eventbuffer.readline.php', 1 => 'EventBuffer::readLine', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventbuffer/readfrom.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventBuffer::readFrom

(PECL event >= 1.7.0)

EventBuffer::readFromRead data from a file onto the end of the buffer

Опис

public function EventBuffer::read( mixed $fd , int $howmuch ): int

Read data from the file specified by fd onto the end of the buffer.

Параметри

fd

Socket resource, stream, or numeric file descriptor.

howmuch
Maximum number of bytes to read.

Значення, що повертаються

Returns the number of bytes read, or false on failure.

Прогляньте також