Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 25.x
Latest version:
pecl install openswoole-25.2.0
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::__constructSwoole\Server->setSwoole\Server->onSwoole\Server->listenSwoole\Server->addListenerSwoole\Server->addProcessSwoole\Server->startSwoole\Server->reloadSwoole\Server->stopSwoole\Server->shutdownSwoole\Server->tickSwoole\Server->afterSwoole\Server->deferSwoole\Server->clearTimerSwoole\Server->closeSwoole\Server->sendSwoole\Server->sendfileSwoole\Server->sendtoSwoole\Server->sendwaitSwoole\Server->sendMessageSwoole\Server->existSwoole\Server->pauseSwoole\Server->resumeSwoole\Server->getClientInfoSwoole\Server->getClientListSwoole\Server->bindSwoole\Server->statsSwoole\Server->taskSwoole\Server->taskCoSwoole\Server->taskWaitSwoole\Server->taskWaitMultiSwoole\Server->finishSwoole\Server->heartbeatSwoole\Server->getLastErrorSwoole\Server->getSocketSwoole\Server->protectSwoole\Server->getCallbackSwoole\Server->getReceivedTimeSwoole\Server->getWorkerIdSwoole\Server->getWorkerPidSwoole\Server->getManagerPidSwoole\Server->getMasterPid