Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
Swoole Server provides the API to write TCP, UDP, Unix Socket asynchronous servers. It supports IPv4, IPv6, one Way, two Way SSL and TLS Encryption. Developers do not have to know the internal implementations, only have to write the logics of the server in the callback functions.
Swoole\Server::__construct
Swoole\Server->set
Swoole\Server->on
Swoole\Server->listen
Swoole\Server->addListener
Swoole\Server->addProcess
Swoole\Server->start
Swoole\Server->reload
Swoole\Server->stop
Swoole\Server->shutdown
Swoole\Server->tick
Swoole\Server->after
Swoole\Server->defer
Swoole\Server->clearTimer
Swoole\Server->close
Swoole\Server->send
Swoole\Server->sendfile
Swoole\Server->sendto
Swoole\Server->sendwait
Swoole\Server->sendMessage
Swoole\Server->exist
Swoole\Server->pause
Swoole\Server->resume
Swoole\Server->getClientInfo
Swoole\Server->getClientList
Swoole\Server->bind
Swoole\Server->stats
Swoole\Server->task
Swoole\Server->taskCo
Swoole\Server->taskWait
Swoole\Server->taskWaitMulti
Swoole\Server->finish
Swoole\Server->heartbeat
Swoole\Server->getLastError
Swoole\Server->getSocket
Swoole\Server->protect
Swoole\Server->getCallback
Swoole\Server->getReceivedTime
Swoole\Server->getWorkerId
Swoole\Server->getWorkerPid
Swoole\Server->getManagerPid
Swoole\Server->getMasterPid