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
同步或异步客户端。
创建swole同步或异步TCP/UDP客户端,带或不带SSL
public Swoole\Client::__construct(int $sock_type, int $is_async = ?)