Query: eio_sendfile
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
EIO_SENDFILE(3) 1 EIO_SENDFILE(3) eio_sendfile - Transfer data between file descriptorsSYNOPSISresource eio_sendfile (mixed $out_fd, mixed $in_fd, int $offset, int $length, [int $pri], [callable $callback], [string $data])DESCRIPTIONeio_sendfile(3) copies data between one file descriptor and another. See SENDFILE(2) man page for details.PARAMETERSo $out_fd - Output stream, Socket resource, or file descriptor. Should be opened for writing. o $in_fd - Input stream, Socket resource, or file descriptor. Should be opened for reading. o $offset - Offset within the source file. o $length - Number of bytes to copy. o $pri -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. o $callback -$callback function is called when the request is done. It should match the following prototype: void callback(mixed $data, int $result[, resource $req]); o $data -is custom data passed to the request. o $result -request-specific result value; basically, the value returned by corresponding system call. o $req -is optional request resource which can be used with functions like eio_get_last_error(3) o $data - Arbitrary variable passed to $callback.RETURN VALUESeio_sendfile(3) returns request resource on success or FALSE on error. PHP Documentation Group EIO_SENDFILE(3)