php man page for eio_sendfile

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 descriptors

SYNOPSIS
resource eio_sendfile (mixed $out_fd, mixed $in_fd, int $offset, int $length, [int $pri], [callable $callback], [string $data])
DESCRIPTION
eio_sendfile(3) copies data between one file descriptor and another. See SENDFILE(2) man page for details.
PARAMETERS
o $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 VALUES
eio_sendfile(3) returns request resource on success or FALSE on error. PHP Documentation Group EIO_SENDFILE(3)
Related Man Pages
eio_readahead(3) - php
eio_chmod(3) - php
eio_fchown(3) - php
eio_futime(3) - php
eio_seek(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Rules for Homework & Coursework Questions Forum
UNIX.COM 2017 Year End Summary
Please Welcome Ravinder Singh to the Moderation Team
Please Welcome Nicki Paul to the Moderator Team!