eio_sendfile
eio_sendfile
Transfer data between file descriptors
resource **eio_sendfile** mixed $out_fd mixed $in_fd int $offset int $length int $pri callable $callback string $data
copies data between one file descriptor
and another. See man page for details.
eio_sendfile``SENDFILE(2)
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.
pri``callback``data
Arbitrary variable passed to .
callback
returns request resource on success,return.falseforfailure.
eio_sendfile