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_VERSION the version of swooleSWOOLE_BASE set the swoole server to SWOOLE_BASE mode
SWOOLE_PROCESS set the swoole_server to SWOOLE_PROCESS
SWOOLE_SOCK_TCP create tcp client
SWOOLE_SOCK_TCP6 create tcp ipv6 client
SWOOLE_SOCK_UDP create udp client
SWOOLE_SOCK_UDP6 create udp ipv6 client
SWOOLE_SOCK_SYNC create synchronous client
SWOOLE_SOCK_ASYNC create asynchronous client
SWOOLE_FILELOCK create file lock
SWOOLE_MUTEX cretae mutex lock
SWOOLE_RWLOCK create read/write lock
SWOOLE_SPINLOCK create spin lock
SWOOLE_SEM create semaphore