OpenSwoole Server Predefined Constants

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

TODO: FIX

Overall

  • OpenSwoole\Constant::VERSION the version of OpenSwoole

Server Constants

  • OpenSwoole\Server::SIMPLE_MODE set the OpenSwoole server to be OpenSwoole\Server::SIMPLE_MODE mode

  • OpenSwoole\Server::POOL_MODE set the OpenSwoole\Constant::server to OpenSwoole\Server::POOL_MODE

OpenSwoole Client Constants

  • OpenSwoole\Constant::SOCK_TCP create tcp client

  • OpenSwoole\Constant::SOCK_TCP6 create tcp ipv6 client

  • OpenSwoole\Constant::SOCK_UDP create udp client

  • OpenSwoole\Constant::SOCK_UDP6 create udp ipv6 client

  • OpenSwoole\Constant::SOCK_SYNC create synchronous client

  • OpenSwoole\Constant::SOCK_ASYNC create asynchronous client

OpenSwoole Lock

  • OpenSwoole\Constant::FILELOCK create file lock

  • OpenSwoole\Constant::MUTEX cretae mutex lock

  • OpenSwoole\Constant::RWLOCK create read/write lock

  • OpenSwoole\Constant::SPINLOCK create spin lock

  • OpenSwoole\Constant::SEM create semaphore

Available SSL Encryption Algorithms

  • OpenSwoole\Constant::SSLv3_METHOD
  • OpenSwoole\Constant::SSLv3_SERVER_METHOD
  • OpenSwoole\Constant::SSLv3_CLIENT_METHOD
  • OpenSwoole\Constant::SSLv23_METHOD
  • OpenSwoole\Constant::SSLv23_SERVER_METHOD
  • OpenSwoole\Constant::SSLv23_CLIENT_METHOD
  • OpenSwoole\Constant::TLSv1_METHOD
  • OpenSwoole\Constant::TLSv1_SERVER_METHOD
  • OpenSwoole\Constant::TLSv1_CLIENT_METHOD
  • OpenSwoole\Constant::TLSv1_1_METHOD
  • OpenSwoole\Constant::TLSv1_1_SERVER_METHOD
  • OpenSwoole\Constant::TLSv1_1_CLIENT_METHOD
  • OpenSwoole\Constant::TLSv1_2_METHOD
  • OpenSwoole\Constant::TLSv1_2_SERVER_METHOD
  • OpenSwoole\Constant::TLSv1_2_CLIENT_METHOD
  • OpenSwoole\Constant::DTLSv1_METHOD
  • OpenSwoole\Constant::DTLSv1_SERVER_METHOD
  • OpenSwoole\Constant::DTLSv1_CLIENT_METHOD
Last updated on September 20, 2022