eio_sendfile() copies data between one file descriptor and another. See SENDFILE(2) man page for details.
Output stream, Socket resource, or file descriptor. Should be opened for writing.
Input stream, Socket resource, or file descriptor. Should be opened for reading.
Offset within the source file.
Number of bytes to copy.
The request priority: EIO_PRI_DEFAULT
, EIO_PRI_MIN
, EIO_PRI_MAX
, or NULL
. If NULL
passed, pri
internally is set to EIO_PRI_DEFAULT
.
callback
function is called when the request is done. It should match the following prototype:
void callback(mixed $data, int $result[, resource $req]);
Arbitrary variable passed to callback
.
eio_sendfile() returns request resource on success or FALSE
on error.
Please login to continue.