2024 PHP Conference Japan

Swoole\Client 類別

(PECL swoole >= 1.9.0)

簡介

類別概要

類別 Swoole\Client {
/* 常數 */
const int MSG_OOB = 1;
const int MSG_PEEK = 2;
const int MSG_DONTWAIT = 128;
const int MSG_WAITALL = 64;
/* 屬性 */
public $errCode;
public $sock;
public $reuse;
public $reuseCount;
/* 方法 */
public function close(bool $force = ?): bool
public function connect(
    string $host,
    int $port = ?,
    int $timeout = ?,
    int $flag = ?
): bool
public function __destruct(): void
public function getpeername(): array
public function getsockname(): array
public function isConnected(): bool
public function on(string $event, callable $callback): void
public function pause(): void
public function pipe(string $socket): void
public function recv(string $size = ?, string $flag = ?): void
public function resume(): void
public function send(string $data, string $flag = ?): int
公開 sendfile(字串 $filename, 整數 $offset = ?): 布林值
公開 sendto(字串 $ip, 整數 $port, 字串 $data): 布林值
公開 set(陣列 $settings):
公開 sleep():
公開 wakeup():
}

屬性

errCode(錯誤碼)

sock(通訊端)

reuse(重用)

reuseCount(重用計數)

目錄

新增註釋

使用者提供的註釋

此頁面沒有使用者提供的註釋。
To Top