English | 简体中文 | 繁體中文
查询

Swoole\Server::listen()函数—用法及示例

「 监听给定的IP和端口,套接字类型 」


适用版本(PECL swoole >= 1.9.0)

Swoole\Server::listen — 监听给定的IP和端口,套接字类型。

说明
public Swoole\Server::listen(string $host, int $port, string $socket_type): bool

参数
host
port
socket_type
补充纠错
上一个函数: Swoole\Mmap::open()函数
热门PHP函数
分享链接