牛牛在线工具

Swoole\Client::sendfile()

收录 8868 个 PHP 函数,含用途说明与用法示例。

Swoole\Client::sendfile()

发送文件到远程TCP套接字。

适用PHP版本(PECL swoole >= 1.9.0) Swoole\Client::sendfile — 发送文件到远程TCP套接字。 说明 public Swoole\Client::sendfile(string $filename, int $offset = ?): bool 这是Linux sendfile系统调用的包装器。 参数 filename 要发送的文件路径。 offset 要发送的文件的偏移量 返回值 无