EventBuffer::readFrom
PHP function
Edit on GitHub ✎
(PECL event >= 1.7.0)
Read data from a file onto the end of the buffer
Description
EventBuffer::read(mixed $fd, int $howmuch): int
Read data from the file specified by fd onto the end of the buffer.
Parameters
fdSocket resource, stream, or numeric file descriptor.
howmuchMaximum number of bytes to read.
Return Values
Returns the number of bytes read, or false on failure.
See Also
EventBuffer::copyoutEventBuffer::drainEventBuffer::pullupEventBuffer::readLineEventBuffer::appendFrom