Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Server::connection_listSwoole\Server::defer>
^Swoole\ServerLast updated: Mon, 26 Oct 2026

Swoole\Server::__construct

(PECL swoole >= 1.9.0)

Swoole\Server::__construct — Construct a Swoole server.

Description

public function Swoole\Server::__construct(
    string $host,
    int $port = ?,
    int $mode = ?,
    int $sock_type = ?
)

Parameters

host

port

mode

sock_type


<Swoole\Server::connection_listSwoole\Server::defer>
^Swoole\ServerLast updated: Mon, 26 Oct 2026