Swoole\Client->sendfile

4.x is outdated, please check the latest version 22.x


Latest version: pecl install openswoole-22.1.2

Declaration

<?php Swoole\Client->sendfile(string $filename, $offset = 0, $length = -1)

Parameters

filename

The location of the file to send.

offset

Offset and start point to send the file.

length

The length of the data to send.

Return

Description

Send file to the remote socket.

This is a wrapper of the Linux sendfile system call.

Example

Last updated on August 31, 2022