Swoole\Server::__construct()
构建一个Swoole服务器
适用版本(PECL swoole >= 1.9.0)
Swoole\Server::__construct — 构建一个Swoole服务器。
说明
public Swoole\Server::__construct(
string $host,
int $port = ?,
integr $mode = ?,
int $sock_type = ?
)
参数
host
port
mode
sock_type