Swoole\Server->listen

Declaration

<?php
Swoole\Server::listen ( string $host , int $port , string $socket_type ) : bool

Parameters

host

host name

port

port number

socket_type

socket type

Return

success

if success, it returns TRUE, otherwise it returns FALSE.