Swoole\Server
PHP Manual

Swoole\Server::addlistener

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Server::addlistenerAdd a new listener to the server.

说明

public void Swoole\Server::addlistener ( string $host , integer $port , string $socket_type )

参数

host

port

socket_type

返回值


Swoole\Server
PHP Manual