查詢

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
要傳送的檔案的偏移量

返回值

補充糾錯
上一個函式: Swoole\Client::send()函式
下一個函式: Swoole\Client::sendto()函式
熱門PHP函式
分享連結