Home
How it works
Article
Documentation
Community
Support Service
Search
Swoole API Overview
Swoole PHP
Swoole API Overview
Swoole
Swoole\Server
Swoole\HTTP\Server
Swoole\WebSocket\Server
Swoole\Redis\Server
Swoole\Server::__construct
Swoole\Server->set(array $setting)
Swoole\Server->on(string $event, mixed $callback)
Swoole\Server->listen(string $host, int $port, $type = SWOOLE_SOCK_TCP)
Swoole\Server->addListener(string $host, int $port, $type = SWOOLE_SOCK_TCP)
Swoole\Server->addProcess(swoole_process $process)
Swoole\Server->start()
Swoole\Server->reload(bool $only_taskworker = false)
Swoole\Server->stop($worker_id)
Swoole\Server->shutdown()
Swoole\Server->tick(int $intval_ms, mixed $callback_function)
Swoole\Server->after(int $after_time_ms, mixed $callback_function)
Swoole\Server->defer(callable $callback)
Swoole\Server->clearTimer(int $timer_id)
Swoole\Server->close(int $fd, bool $reset = false)
Swoole\Server->send(int $fd, string $data, int $reactorThreadId = 0)
Swoole\Server->sendfile(int $fd, string $filename, int $offset =0, int $length = 0)
Swoole\Server->sendto(string $ip, int $port, string $data, int $server_socket = -1)
Swoole\Server->sendwait(int $fd, string $send_data)
Swoole\Server->sendMessage(string $message, int $dst_worker_id)
Swoole\Server->exist(int $fd)
Swoole\Server->pause(int $fd)
Swoole\Server->resume(int $fd)
Swoole\Server->getClientInfo(int $fd, int $from_id, bool $ignore_close = false)
Swoole\Server->getClientList(int $start_fd = 0, int $pagesize = 10)
Swoole\Server->bind(int $fd, int $uid)
Swoole\Server->stats()
Swoole\Server->task(mixed $data, int $dst_worker_id = -1)
Swoole\Server->taskCo(array $tasks, double $timeout = -1)
Swoole\Server->taskwait(mixed $task_data, float $timeout = 0.5, int $dst_worker_id = -1)
Swoole\Server->taskWaitMulti(array $tasks, double $timeout)
Swoole\Server->finish(string $data)
Swoole\Server->heartbeat(bool $if_close_connection = true)
Swoole\Server->getLastError()
Swoole\Server->getSocket()
Swoole\Server->protect(int $fd, bool $value = true)
Swoole\Server->getCallback(string event)
Swoole\Server->getInstance()
Swoole\Server->getWorkerId()
Swoole\Server->getWorkerPid()
Swoole\Server->getManagerPid()
Swoole\Server->getMasterPid()
Swoole\Server->getReceivedTime()
Swoole\Client
Swoole\Client::__construct (swoole_client::__construct)
Swoole\Client::connect (swoole_client::connect)
Swoole\Client::close (swoole_client->close)
Swoole\Client::enableSSL (swoole_client::enableSSL)
Swoole\Client::getPeerCert (swoole_client::getPeerCert)
Swoole\Client::getPeerName (swoole_client::getPeerName)
Swoole\Client::getSocket (swoole_client::getSocket)
Swoole\Client::getSockName (swoole_client::getSockName)
Swoole\Client::isConnected (swoole_client::isConnected)
Swoole\Client::on (swoole_client::on)
Swoole\Client::recv (swoole_client::recv)
Swoole\Client::send (swoole_client::send)
Swoole\Client::sendfile (swoole_client::sendfile)
Swoole\Client::sendto (swoole_client::sendto)
Swoole\Client::set (swoole_client::set)
Swoole\Client::sleep (swoole_client::sleep)
Swoole\Client::wakeup (swoole_client::wakeup)
Newsletter
Join 1,000+ others and never miss out on new tips, tutorials, and more.
Email Address
Swoole Documentation
Introduction
Get started with Swoole
Swoole Class Alias
Swoole Features
Event Loop API
Timer
Protocols
Server
TCP/UDP Server
HTTP Server
WebSocket Server
MQTT Server
PHP Coroutine
PHP Coroutine
Coroutine System
Coroutine Channel
Coroutine WaitGroup
Coroutine Run
Coroutine Server
Coroutine Socket
Coroutine Library
Coroutine Client
Coroutine TCP/UDP Client
Coroutine HTTP Client
Coroutine HTTP2 Client
Coroutine FastCGI Client
Coroutine Redis Client
Coroutine MySQL Client
Coroutine Postgres Client
Multiprocessing
Multiprocessing
Process
Process Pool
Table
Atomic
Lock
TCP/UDP Client
Swoole Community
Twitter
Slack Group
Support