PHP Conference Japan 2024

Swoole\Client::sendfile

(PECL swoole >= 1.9.0)

Swoole\Client::sendfile發送檔案到遠端 TCP 通訊端。

說明

public Swoole\Client::sendfile(字串 $filename, 整數 $offset = ?): 布林值

這是 Linux sendfile 系統呼叫的包裝函式。

參數

filename

要發送的檔案路徑。

offset

要發送的檔案偏移量

回傳值

新增註記

使用者貢獻的註記

此頁面尚無使用者貢獻的註記。
To Top