eio_sendfile
(PECL eio >= 0.0.1dev)
Transfer data between file descriptors
Description
eio_sendfile() copies data between one file descriptor and another. See SENDFILE(2) man page for details.
Parameters
out_fdOutput stream, Socket resource, or file descriptor. Should be opened for writing.
in_fdInput stream, Socket resource, or file descriptor. Should be opened for reading.
offsetOffset within the source file.
lengthNumber of bytes to copy.
priValues
callbackProto
dataArbitrary variable passed to
callback.
Return Values
eio_sendfile() returns request resource on success,Falseforfailure.