Swoole\Server::addlistener — 向服务器添加一个新的侦听器。
说明
public Swoole\Server::addlistener(string $host, int $port, string $socket_type): void
参数
host
port
socket_type
返回值
向服务器添加一个新的侦听器。
public Swoole\Server::addlistener(string $host, int $port, string $socket_type): void