PHP Manual
Function Reference
Other Basic Extensions
Swoole
Swoole\Server
Swoole\Server::addlistener
Swoole\Server::addProcess
Swoole\Server::after
Swoole\Server::bind
Swoole\Server::clearTimer
Swoole\Server::close
Swoole\Server::confirm
Swoole\Server::connection_info
Swoole\Server::connection_list
Swoole\Server::__construct
Swoole\Server::defer
Swoole\Server\Port::__construct
Swoole\Server\Port::__destruct
Swoole\Server\Port::on
Swoole\Server\Port::set
Swoole\Server::exist
Swoole\Server::finish
Swoole\Server::getClientInfo
Swoole\Server::getClientList
Swoole\Server::getLastError
Swoole\Server::heartbeat
Swoole\Server::listen
Swoole\Server::on
Swoole\Server::pause
Swoole\Server::protect
Swoole\Server::reload
Swoole\Server::resume
Swoole\Server::send
Swoole\Server::sendfile
Swoole\Server::sendMessage
Swoole\Server::sendto
Swoole\Server::sendwait
Swoole\Server::set
Swoole\Server::shutdown
Swoole\Server::start
Swoole\Server::stats
Swoole\Server::stop
Swoole\Server::task
Swoole\Server::taskwait
Swoole\Server::taskWaitMulti
Swoole\Server::tick
Swoole\Server::heartbeat
Swoole\Server::on
Swoole\Server
PHP Manual
Swoole\Server::listen
Listen on the given IP and port, socket type.
Description
public
bool
Swoole\Server::listen
(
string
$host
,
int
$port
,
string
$socket_type
)
Parameters
host
port
socket_type
Return Values