Swoole server predefined constants

  • SWOOLE_VERSION the version of swoole

The parameter of constructor of swoole_server

  • SWOOLE_BASE set the swoole server to SWOOLE_BASE mode

  • SWOOLE_PROCESS set the swoole_server to SWOOLE_PROCESS

The parameter of constructor of swoole_client

  • 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

The parameter of constructor of 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

The SSL encryption algorithm

  • 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