Swoole\Client::__construct()

创建swole同步或异步TCP/UDP客户端,带或不带SSL

首字母:S
适用PHP版本(PECL swoole >= 1.9.0)

Swoole\Client::__construct — 创建swole同步或异步TCP/UDP客户端,带或不带SSL。

说明
public Swoole\Client::__construct(int $sock_type, int $is_async = ?)

参数
sock_type
套接字类型:SWOOLE_TCP、SWOOLE_UDP、SWOOLE_ASYNC、SWOOLE_SSL、SWOOLE_KEEP。

is_async
同步或异步客户端。

同首字母函数