Swoole Server Predefined Constants

4.x is outdated, please check the latest version 22.x


Latest version: pecl install openswoole-22.1.2

Overall

  • SWOOLE_VERSION the version of swoole

Server Constants

  • SWOOLE_BASE set the swoole server to SWOOLE_BASE mode

  • SWOOLE_PROCESS set the swoole_server to SWOOLE_PROCESS

Swoole Client Constants

  • 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 Lock

  • 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

Available SSL Encryption Algorithms

  • SWOOLE_SSLv3_METHOD
  • SWOOLE_SSLv3_SERVER_METHOD
  • SWOOLE_SSLv3_CLIENT_METHOD
  • SWOOLE_SSLv23_METHOD
  • SWOOLE_SSLv23_SERVER_METHOD
  • SWOOLE_SSLv23_CLIENT_METHOD
  • SWOOLE_TLSv1_METHOD
  • SWOOLE_TLSv1_SERVER_METHOD
  • SWOOLE_TLSv1_CLIENT_METHOD
  • SWOOLE_TLSv1_1_METHOD
  • SWOOLE_TLSv1_1_SERVER_METHOD
  • SWOOLE_TLSv1_1_CLIENT_METHOD
  • SWOOLE_TLSv1_2_METHOD
  • SWOOLE_TLSv1_2_SERVER_METHOD
  • SWOOLE_TLSv1_2_CLIENT_METHOD
  • SWOOLE_DTLSv1_METHOD
  • SWOOLE_DTLSv1_SERVER_METHOD
  • SWOOLE_DTLSv1_CLIENT_METHOD
Last updated on August 31, 2022