Predefined Constants of OpenSwoole

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

Open Swoole predefined constants

[OpenSwoole\Constant::VERSION] => '22.0.0-dev'
[OpenSwoole\Constant::VERSION_ID] => 220000
[OpenSwoole\Constant::MAJOR_VERSION] => 22
[OpenSwoole\Constant::MINOR_VERSION] => 0
[OpenSwoole\Constant::RELEASE_VERSION] => 0
[OpenSwoole\Constant::EXTRA_VERSION] => 'dev'

[OpenSwoole\Constant::HAVE_COMPRESSION] => 1
[OpenSwoole\Constant::HAVE_ZLIB] => 1
[OpenSwoole\Constant::HAVE_BROTLI] => 1

[OpenSwoole\Constant::USE_HTTP2] => 1
[OpenSwoole\Constant::USE_POSTGRES] => 1

[OpenSwoole\Constant::SOCK_TCP] => 1
[OpenSwoole\Constant::SOCK_TCP6] => 3
[OpenSwoole\Constant::SOCK_UDP] => 2
[OpenSwoole\Constant::SOCK_UDP6] => 4
[OpenSwoole\Constant::SOCK_UNIX_DGRAM] => 6
[OpenSwoole\Constant::SOCK_UNIX_STREAM] => 5

[OpenSwoole\Constant::TCP] => 1
[OpenSwoole\Constant::TCP6] => 3
[OpenSwoole\Constant::UDP] => 2
[OpenSwoole\Constant::UDP6] => 4
[OpenSwoole\Constant::UNIX_DGRAM] => 6
[OpenSwoole\Constant::UNIX_STREAM] => 5

[OpenSwoole\Constant::SOCK_SYNC] => 0
[OpenSwoole\Constant::SOCK_ASYNC] => 1
[OpenSwoole\Constant::SYNC] => 2048
[OpenSwoole\Constant::ASYNC] => 1024
[OpenSwoole\Constant::KEEP] => 4096

[OpenSwoole\Constant::SSL] => 512

[OpenSwoole\Constant::SSLv3_METHOD] => 1
[OpenSwoole\Constant::SSLv3_SERVER_METHOD] => 2
[OpenSwoole\Constant::SSLv3_CLIENT_METHOD] => 3
[OpenSwoole\Constant::TLSv1_METHOD] => 6
[OpenSwoole\Constant::TLSv1_SERVER_METHOD] => 7
[OpenSwoole\Constant::TLSv1_CLIENT_METHOD] => 8

[OpenSwoole\Constant::TLSv1_1_METHOD] => 9
[OpenSwoole\Constant::TLSv1_1_SERVER_METHOD] => 10
[OpenSwoole\Constant::TLSv1_1_CLIENT_METHOD] => 11

[OpenSwoole\Constant::TLSv1_2_METHOD] => 12
[OpenSwoole\Constant::TLSv1_2_SERVER_METHOD] => 13
[OpenSwoole\Constant::TLSv1_2_CLIENT_METHOD] => 14
[OpenSwoole\Constant::DTLS_SERVER_METHOD] => 16
[OpenSwoole\Constant::DTLS_CLIENT_METHOD] => 15
[OpenSwoole\Constant::SSLv23_METHOD] => 0
[OpenSwoole\Constant::SSLv23_SERVER_METHOD] => 4
[OpenSwoole\Constant::SSLv23_CLIENT_METHOD] => 5
[OpenSwoole\Constant::TLS_METHOD] => 0
[OpenSwoole\Constant::TLS_SERVER_METHOD] => 4
[OpenSwoole\Constant::TLS_CLIENT_METHOD] => 5
[OpenSwoole\Constant::SSL_TLSv1] => 8
[OpenSwoole\Constant::SSL_TLSv1_1] => 16
[OpenSwoole\Constant::SSL_TLSv1_2] => 32
[OpenSwoole\Constant::SSL_TLSv1_3] => 64
[OpenSwoole\Constant::SSL_DTLS] => 128
[OpenSwoole\Constant::SSL_SSLv2] => 2

[OpenSwoole\Constant::STRERROR_SYSTEM] => 0
[OpenSwoole\Constant::STRERROR_GAI] => 1
[OpenSwoole\Constant::STRERROR_DNS] => 2
[OpenSwoole\Constant::STRERROR_SWOOLE] => 9

[OpenSwoole\Constant::ERROR_MALLOC_FAIL] => 501
[OpenSwoole\Constant::ERROR_SYSTEM_CALL_FAIL] => 502
[OpenSwoole\Constant::ERROR_PHP_FATAL_ERROR] => 503
[OpenSwoole\Constant::ERROR_NAME_TOO_LONG] => 504
[OpenSwoole\Constant::ERROR_INVALID_PARAMS] => 505
[OpenSwoole\Constant::ERROR_QUEUE_FULL] => 506
[OpenSwoole\Constant::ERROR_OPERATION_NOT_SUPPORT] => 507
[OpenSwoole\Constant::ERROR_PROTOCOL_ERROR] => 508
[OpenSwoole\Constant::ERROR_WRONG_OPERATION] => 509
[OpenSwoole\Constant::ERROR_FILE_NOT_EXIST] => 700
[OpenSwoole\Constant::ERROR_FILE_TOO_LARGE] => 701
[OpenSwoole\Constant::ERROR_FILE_EMPTY] => 702
[OpenSwoole\Constant::ERROR_DNSLOOKUP_DUPLICATE_REQUEST] => 710
[OpenSwoole\Constant::ERROR_DNSLOOKUP_RESOLVE_FAILED] => 711
[OpenSwoole\Constant::ERROR_DNSLOOKUP_RESOLVE_TIMEOUT] => 712
[OpenSwoole\Constant::ERROR_DNSLOOKUP_UNSUPPORTED] => 713
[OpenSwoole\Constant::ERROR_DNSLOOKUP_NO_SERVER] => 714
[OpenSwoole\Constant::ERROR_BAD_IPV6_ADDRESS] => 720
[OpenSwoole\Constant::ERROR_UNREGISTERED_SIGNAL] => 721
[OpenSwoole\Constant::ERROR_EVENT_SOCKET_REMOVED] => 800
[OpenSwoole\Constant::ERROR_SESSION_CLOSED_BY_SERVER] => 1001
[OpenSwoole\Constant::ERROR_SESSION_CLOSED_BY_CLIENT] => 1002
[OpenSwoole\Constant::ERROR_SESSION_CLOSING] => 1003
[OpenSwoole\Constant::ERROR_SESSION_CLOSED] => 1004
[OpenSwoole\Constant::ERROR_SESSION_NOT_EXIST] => 1005
[OpenSwoole\Constant::ERROR_SESSION_INVALID_ID] => 1006
[OpenSwoole\Constant::ERROR_SESSION_DISCARD_TIMEOUT_DATA] => 1007
[OpenSwoole\Constant::ERROR_SESSION_DISCARD_DATA] => 1008
[OpenSwoole\Constant::ERROR_OUTPUT_BUFFER_OVERFLOW] => 1009
[OpenSwoole\Constant::ERROR_OUTPUT_SEND_YIELD] => 1010
[OpenSwoole\Constant::ERROR_SSL_NOT_READY] => 1011
[OpenSwoole\Constant::ERROR_SSL_CANNOT_USE_SENFILE] => 1012
[OpenSwoole\Constant::ERROR_SSL_EMPTY_PEER_CERTIFICATE] => 1013
[OpenSwoole\Constant::ERROR_SSL_VERIFY_FAILED] => 1014
[OpenSwoole\Constant::ERROR_SSL_BAD_CLIENT] => 1015
[OpenSwoole\Constant::ERROR_SSL_BAD_PROTOCOL] => 1016
[OpenSwoole\Constant::ERROR_SSL_RESET] => 1017
[OpenSwoole\Constant::ERROR_SSL_HANDSHAKE_FAILED] => 1018
[OpenSwoole\Constant::ERROR_PACKAGE_LENGTH_TOO_LARGE] => 1201
[OpenSwoole\Constant::ERROR_PACKAGE_LENGTH_NOT_FOUND] => 1202
[OpenSwoole\Constant::ERROR_DATA_LENGTH_TOO_LARGE] => 1203
[OpenSwoole\Constant::ERROR_TASK_PACKAGE_TOO_BIG] => 2001
[OpenSwoole\Constant::ERROR_TASK_DISPATCH_FAIL] => 2002
[OpenSwoole\Constant::ERROR_TASK_TIMEOUT] => 2003
[OpenSwoole\Constant::ERROR_HTTP2_STREAM_ID_TOO_BIG] => 3001
[OpenSwoole\Constant::ERROR_HTTP2_STREAM_NO_HEADER] => 3002
[OpenSwoole\Constant::ERROR_HTTP2_STREAM_NOT_FOUND] => 3003
[OpenSwoole\Constant::ERROR_HTTP2_STREAM_IGNORE] => 3004
[OpenSwoole\Constant::ERROR_AIO_BAD_REQUEST] => 4001
[OpenSwoole\Constant::ERROR_AIO_CANCELED] => 4002
[OpenSwoole\Constant::ERROR_AIO_TIMEOUT] => 4003
[OpenSwoole\Constant::ERROR_CLIENT_NO_CONNECTION] => 5001
[OpenSwoole\Constant::ERROR_SOCKET_CLOSED] => 6001
[OpenSwoole\Constant::ERROR_SOCKET_POLL_TIMEOUT] => 6002
[OpenSwoole\Constant::ERROR_SOCKS5_UNSUPPORT_VERSION] => 7001
[OpenSwoole\Constant::ERROR_SOCKS5_UNSUPPORT_METHOD] => 7002
[OpenSwoole\Constant::ERROR_SOCKS5_AUTH_FAILED] => 7003
[OpenSwoole\Constant::ERROR_SOCKS5_SERVER_ERROR] => 7004
[OpenSwoole\Constant::ERROR_SOCKS5_HANDSHAKE_FAILED] => 7005
[OpenSwoole\Constant::ERROR_HTTP_PROXY_HANDSHAKE_ERROR] => 7101
[OpenSwoole\Constant::ERROR_HTTP_INVALID_PROTOCOL] => 7102
[OpenSwoole\Constant::ERROR_HTTP_PROXY_HANDSHAKE_FAILED] => 7103
[OpenSwoole\Constant::ERROR_HTTP_PROXY_BAD_RESPONSE] => 7104
[OpenSwoole\Constant::ERROR_WEBSOCKET_BAD_CLIENT] => 8501
[OpenSwoole\Constant::ERROR_WEBSOCKET_BAD_OPCODE] => 8502
[OpenSwoole\Constant::ERROR_WEBSOCKET_UNCONNECTED] => 8503
[OpenSwoole\Constant::ERROR_WEBSOCKET_HANDSHAKE_FAILED] => 8504
[OpenSwoole\Constant::ERROR_WEBSOCKET_PACK_FAILED] => 8505
[OpenSwoole\Constant::ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT] => 9001
[OpenSwoole\Constant::ERROR_SERVER_TOO_MANY_SOCKET] => 9002
[OpenSwoole\Constant::ERROR_SERVER_WORKER_TERMINATED] => 9003
[OpenSwoole\Constant::ERROR_SERVER_INVALID_LISTEN_PORT] => 9004
[OpenSwoole\Constant::ERROR_SERVER_TOO_MANY_LISTEN_PORT] => 9005
[OpenSwoole\Constant::ERROR_SERVER_PIPE_BUFFER_FULL] => 9006
[OpenSwoole\Constant::ERROR_SERVER_NO_IDLE_WORKER] => 9007
[OpenSwoole\Constant::ERROR_SERVER_ONLY_START_ONE] => 9008
[OpenSwoole\Constant::ERROR_SERVER_SEND_IN_MASTER] => 9009
[OpenSwoole\Constant::ERROR_SERVER_INVALID_REQUEST] => 9010
[OpenSwoole\Constant::ERROR_SERVER_CONNECT_FAIL] => 9011
[OpenSwoole\Constant::ERROR_SERVER_WORKER_EXIT_TIMEOUT] => 9012
[OpenSwoole\Constant::ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA] => 9013
[OpenSwoole\Constant::ERROR_SERVER_WORKER_UNPROCESSED_DATA] => 9014
[OpenSwoole\Constant::ERROR_CO_OUT_OF_COROUTINE] => 10001
[OpenSwoole\Constant::ERROR_CO_HAS_BEEN_BOUND] => 10002
[OpenSwoole\Constant::ERROR_CO_HAS_BEEN_DISCARDED] => 10003
[OpenSwoole\Constant::ERROR_CO_MUTEX_DOUBLE_UNLOCK] => 10004
[OpenSwoole\Constant::ERROR_CO_BLOCK_OBJECT_LOCKED] => 10005
[OpenSwoole\Constant::ERROR_CO_BLOCK_OBJECT_WAITING] => 10006
[OpenSwoole\Constant::ERROR_CO_YIELD_FAILED] => 10007
[OpenSwoole\Constant::ERROR_CO_GETCONTEXT_FAILED] => 10008
[OpenSwoole\Constant::ERROR_CO_SWAPCONTEXT_FAILED] => 10009
[OpenSwoole\Constant::ERROR_CO_MAKECONTEXT_FAILED] => 10010
[OpenSwoole\Constant::ERROR_CO_IOCPINIT_FAILED] => 10011
[OpenSwoole\Constant::ERROR_CO_PROTECT_STACK_FAILED] => 10012
[OpenSwoole\Constant::ERROR_CO_STD_THREAD_LINK_ERROR] => 10013
[OpenSwoole\Constant::ERROR_CO_DISABLED_MULTI_THREAD] => 10014
[OpenSwoole\Constant::ERROR_CO_CANNOT_CANCEL] => 10015
[OpenSwoole\Constant::ERROR_CO_NOT_EXISTS] => 10016
[OpenSwoole\Constant::ERROR_CO_CANCELED] => 10017
[OpenSwoole\Constant::ERROR_CO_TIMEDOUT] => 10018

[OpenSwoole\Constant::TRACE_SERVER] => 2
[OpenSwoole\Constant::TRACE_CLIENT] => 4
[OpenSwoole\Constant::TRACE_BUFFER] => 8
[OpenSwoole\Constant::TRACE_CONN] => 16
[OpenSwoole\Constant::TRACE_EVENT] => 32
[OpenSwoole\Constant::TRACE_WORKER] => 64
[OpenSwoole\Constant::TRACE_MEMORY] => 128
[OpenSwoole\Constant::TRACE_REACTOR] => 256
[OpenSwoole\Constant::TRACE_PHP] => 512
[OpenSwoole\Constant::TRACE_HTTP] => 1024
[OpenSwoole\Constant::TRACE_HTTP2] => 2048
[OpenSwoole\Constant::TRACE_EOF_PROTOCOL] => 4096
[OpenSwoole\Constant::TRACE_LENGTH_PROTOCOL] => 8192
[OpenSwoole\Constant::TRACE_CLOSE] => 16384
[OpenSwoole\Constant::TRACE_WEBSOCKET] => 32768
[OpenSwoole\Constant::TRACE_REDIS_CLIENT] => 65536
[OpenSwoole\Constant::TRACE_MYSQL_CLIENT] => 131072
[OpenSwoole\Constant::TRACE_HTTP_CLIENT] => 262144
[OpenSwoole\Constant::TRACE_AIO] => 524288
[OpenSwoole\Constant::TRACE_SSL] => 1048576
[OpenSwoole\Constant::TRACE_NORMAL] => 2097152
[OpenSwoole\Constant::TRACE_CHANNEL] => 4194304
[OpenSwoole\Constant::TRACE_TIMER] => 8388608
[OpenSwoole\Constant::TRACE_SOCKET] => 16777216
[OpenSwoole\Constant::TRACE_COROUTINE] => 33554432
[OpenSwoole\Constant::TRACE_CONTEXT] => 67108864
[OpenSwoole\Constant::TRACE_CO_HTTP_SERVER] => 134217728
[OpenSwoole\Constant::TRACE_TABLE] => 268435456
[OpenSwoole\Constant::TRACE_CO_CURL] => 536870912
[OpenSwoole\Constant::TRACE_CARES] => 1073741824
[OpenSwoole\Constant::TRACE_ALL] => 9223372036854775807

[OpenSwoole\Constant::LOG_DEBUG] => 0
[OpenSwoole\Constant::LOG_TRACE] => 1
[OpenSwoole\Constant::LOG_INFO] => 2
[OpenSwoole\Constant::LOG_NOTICE] => 3
[OpenSwoole\Constant::LOG_WARNING] => 4
[OpenSwoole\Constant::LOG_ERROR] => 5
[OpenSwoole\Constant::LOG_NONE] => 6

[OpenSwoole\Constant::LOG_ROTATION_SINGLE] => 0
[OpenSwoole\Constant::LOG_ROTATION_MONTHLY] => 1
[OpenSwoole\Constant::LOG_ROTATION_DAILY] => 2
[OpenSwoole\Constant::LOG_ROTATION_HOURLY] => 3
[OpenSwoole\Constant::LOG_ROTATION_EVERY_MINUTE] => 4

[OpenSwoole\Constant::IOV_MAX] => 1024

[OpenSwoole\Socket::EVENT_READ] => 512
[OpenSwoole\Socket::EVENT_WRITE] => 1024

[OpenSwoole\Coroutine\Client::MSG_OOB] => 1
[OpenSwoole\Coroutine\Client::MSG_PEEK] => 2
[OpenSwoole\Coroutine\Client::MSG_DONTWAIT] => 128
[OpenSwoole\Coroutine\Client::MSG_WAITALL] => 64

[OpenSwoole\Client::MSG_OOB] => 1
[OpenSwoole\Client::MSG_PEEK] => 2
[OpenSwoole\Client::MSG_DONTWAIT] => 128
[OpenSwoole\Client::MSG_WAITALL] => 64
[OpenSwoole\Client::SHUT_RDWR] => 2
[OpenSwoole\Client::SHUT_RD] => 0
[OpenSwoole\Client::SHUT_WR] => 1

[OpenSwoole\Coroutine\Http\Client::HTTP_CLIENT_ESTATUS_CONNECT_FAILED] => -1
[OpenSwoole\Coroutine\Http\Client::HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT] => -2
[OpenSwoole\Coroutine\Http\Client::HTTP_CLIENT_ESTATUS_SERVER_RESET] => -3
[OpenSwoole\Coroutine\Http\Client::HTTP_CLIENT_ESTATUS_SEND_FAILED] => -4

[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_DATA] => 0
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_HEADERS] => 1
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_PRIORITY] => 2
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_RST_STREAM] => 3
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_SETTINGS] => 4
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_PUSH_PROMISE] => 5
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_PING] => 6
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_GOAWAY] => 7
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_WINDOW_UPDATE] => 8
[OpenSwoole\Coroutine\Http2\Client::HTTP2_TYPE_CONTINUATION] => 9

[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_NO_ERROR] => 0
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_PROTOCOL_ERROR] => 1
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_INTERNAL_ERROR] => 2
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_FLOW_CONTROL_ERROR] => 3
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_SETTINGS_TIMEOUT] => 4
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_STREAM_CLOSED] => 5
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_FRAME_SIZE_ERROR] => 6
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_REFUSED_STREAM] => 7
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_CANCEL] => 8
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_COMPRESSION_ERROR] => 9
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_CONNECT_ERROR] => 10
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_ENHANCE_YOUR_CALM] => 11
[OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_INADEQUATE_SECURITY] => 12

[OpenSwoole\Lock::FILELOCK] => 2
[OpenSwoole\Lock::MUTEX] => 3
[OpenSwoole\Lock::SEM] => 4
[OpenSwoole\Lock::RWLOCK] => 1

[OpenSwoole\Runtime::HOOK_TCP] => 2
[OpenSwoole\Runtime::HOOK_UDP] => 4
[OpenSwoole\Runtime::HOOK_UNIX] => 8
[OpenSwoole\Runtime::HOOK_UDG] => 16
[OpenSwoole\Runtime::HOOK_SSL] => 32
[OpenSwoole\Runtime::HOOK_TLS] => 64
[OpenSwoole\Runtime::HOOK_STREAM_FUNCTION] => 128
[OpenSwoole\Runtime::HOOK_STREAM_SELECT] => 128
[OpenSwoole\Runtime::HOOK_FILE] => 256
[OpenSwoole\Runtime::HOOK_STDIO] => 32768
[OpenSwoole\Runtime::HOOK_SLEEP] => 512
[OpenSwoole\Runtime::HOOK_PROC] => 1024
[OpenSwoole\Runtime::HOOK_CURL] => 2048
[OpenSwoole\Runtime::HOOK_NATIVE_CURL] => 4096
[OpenSwoole\Runtime::HOOK_BLOCKING_FUNCTION] => 8192
[OpenSwoole\Runtime::HOOK_SOCKETS] => 16384
[OpenSwoole\Runtime::HOOK_ALL] => 2147481599

[OpenSwoole\Table::TYPE_INT] => 1
[OpenSwoole\Table::TYPE_STRING] => 3
[OpenSwoole\Table::TYPE_FLOAT] => 2

[OpenSwoole\WebSocket\Server::WEBSOCKET_STATUS_CONNECTION] => 1
[OpenSwoole\WebSocket\Server::WEBSOCKET_STATUS_HANDSHAKE] => 2
[OpenSwoole\WebSocket\Server::WEBSOCKET_STATUS_ACTIVE] => 3
[OpenSwoole\WebSocket\Server::WEBSOCKET_STATUS_CLOSING] => 4

[OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_CONTINUATION] => 0
[OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_TEXT] => 1
[OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_BINARY] => 2
[OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_CLOSE] => 8
[OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_PING] => 9
[OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_PONG] => 10

[OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_FIN] => 1
[OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_RSV1] => 4
[OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_RSV2] => 8
[OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_RSV3] => 16
[OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_MASK] => 32
[OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_COMPRESS] => 2

[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_NORMAL] => 1000
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_GOING_AWAY] => 1001
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_PROTOCOL_ERROR] => 1002
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_DATA_ERROR] => 1003
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_STATUS_ERROR] => 1005
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_ABNORMAL] => 1006
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_MESSAGE_ERROR] => 1007
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_POLICY_ERROR] => 1008
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_MESSAGE_TOO_BIG] => 1009
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_EXTENSION_MISSING] => 1010
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_SERVER_ERROR] => 1011
[OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_TLS] => 1015

[OpenSwoole\Coroutine::DEFAULT_MAX_CORO_NUM] => 100000
[OpenSwoole\Coroutine::CORO_MAX_NUM_LIMIT] => 9223372036854775807
[OpenSwoole\Coroutine::CORO_INIT] => 0
[OpenSwoole\Coroutine::CORO_WAITING] => 1
[OpenSwoole\Coroutine::CORO_RUNNING] => 2
[OpenSwoole\Coroutine::CORO_END] => 3
[OpenSwoole\Coroutine::EXIT_IN_COROUTINE] => 2
[OpenSwoole\Coroutine::EXIT_IN_SERVER] => 4

[OpenSwoole\Coroutine\Channel::CHANNEL_OK] => 0
[OpenSwoole\Coroutine\Channel::CHANNEL_TIMEOUT] => -1
[OpenSwoole\Coroutine\Channel::CHANNEL_CLOSED] => -2
[OpenSwoole\Coroutine\Channel::CHANNEL_CANCELED] => -3

[OpenSwoole\Process\Pool::IPC_NONE] => 0
[OpenSwoole\Process\Pool::IPC_UNIXSOCK] => 1
[OpenSwoole\Process\Pool::IPC_SOCKET] => 3

[OpenSwoole\Timer::TIMER_MIN_MS] => 1
[OpenSwoole\Timer::TIMER_MIN_SEC] => 0.001
[OpenSwoole\Timer::TIMER_MAX_MS] => 9223372036854775807
[OpenSwoole\Timer::TIMER_MAX_SEC] => 9.2233720368548E+15

Socket predefined constants

[AF_UNIX] => 1
[AF_INET] => 2
[AF_INET6] => 30
[SOCK_STREAM] => 1
[SOCK_DGRAM] => 2
[SOCK_RAW] => 3
[SOCK_SEQPACKET] => 5
[SOCK_RDM] => 4
[MSG_OOB] => 1
[MSG_WAITALL] => 64
[MSG_CTRUNC] => 32
[MSG_TRUNC] => 16
[MSG_PEEK] => 2
[MSG_DONTROUTE] => 4
[MSG_EOR] => 8
[MSG_EOF] => 256
[MSG_NOSIGNAL] => 524288
[MSG_DONTWAIT] => 128
[SO_DEBUG] => 1
[SO_REUSEADDR] => 4
[SO_REUSEPORT] => 512
[SO_KEEPALIVE] => 8
[SO_DONTROUTE] => 16
[SO_LINGER] => 128
[SO_BROADCAST] => 32
[SO_OOBINLINE] => 256
[SO_SNDBUF] => 4097
[SO_RCVBUF] => 4098
[SO_SNDLOWAT] => 4099
[SO_RCVLOWAT] => 4100
[SO_SNDTIMEO] => 4101
[SO_RCVTIMEO] => 4102
[SO_TYPE] => 4104
[SO_ERROR] => 4103
[SOL_SOCKET] => 65535
[SOMAXCONN] => 128
[TCP_NODELAY] => 1
[PHP_NORMAL_READ] => 1
[PHP_BINARY_READ] => 2
[MCAST_JOIN_GROUP] => 12
[MCAST_LEAVE_GROUP] => 13
[IP_MULTICAST_IF] => 9
[IP_MULTICAST_TTL] => 10
[IP_MULTICAST_LOOP] => 11
[IPV6_MULTICAST_IF] => 9
[IPV6_MULTICAST_HOPS] => 10
[IPV6_MULTICAST_LOOP] => 11
[IPV6_V6ONLY] => 27
[SOCKET_EPERM] => 1
[SOCKET_ENOENT] => 2
[SOCKET_EINTR] => 4
[SOCKET_EIO] => 5
[SOCKET_ENXIO] => 6
[SOCKET_E2BIG] => 7
[SOCKET_EBADF] => 9
[SOCKET_EAGAIN] => 35
[SOCKET_ENOMEM] => 12
[SOCKET_EACCES] => 13
[SOCKET_EFAULT] => 14
[SOCKET_ENOTBLK] => 15
[SOCKET_EBUSY] => 16
[SOCKET_EEXIST] => 17
[SOCKET_EXDEV] => 18
[SOCKET_ENODEV] => 19
[SOCKET_ENOTDIR] => 20
[SOCKET_EISDIR] => 21
[SOCKET_EINVAL] => 22
[SOCKET_ENFILE] => 23
[SOCKET_EMFILE] => 24
[SOCKET_ENOTTY] => 25
[SOCKET_ENOSPC] => 28
[SOCKET_ESPIPE] => 29
[SOCKET_EROFS] => 30
[SOCKET_EMLINK] => 31
[SOCKET_EPIPE] => 32
[SOCKET_ENAMETOOLONG] => 63
[SOCKET_ENOLCK] => 77
[SOCKET_ENOSYS] => 78
[SOCKET_ENOTEMPTY] => 66
[SOCKET_ELOOP] => 62
[SOCKET_EWOULDBLOCK] => 35
[SOCKET_ENOMSG] => 91
[SOCKET_EIDRM] => 90
[SOCKET_ENOSTR] => 99
[SOCKET_ENODATA] => 96
[SOCKET_ETIME] => 101
[SOCKET_ENOSR] => 98
[SOCKET_EREMOTE] => 71
[SOCKET_ENOLINK] => 97
[SOCKET_EPROTO] => 100
[SOCKET_EMULTIHOP] => 95
[SOCKET_EBADMSG] => 94
[SOCKET_EUSERS] => 68
[SOCKET_ENOTSOCK] => 38
[SOCKET_EDESTADDRREQ] => 39
[SOCKET_EMSGSIZE] => 40
[SOCKET_EPROTOTYPE] => 41
[SOCKET_ENOPROTOOPT] => 42
[SOCKET_EPROTONOSUPPORT] => 43
[SOCKET_ESOCKTNOSUPPORT] => 44
[SOCKET_EOPNOTSUPP] => 102
[SOCKET_EPFNOSUPPORT] => 46
[SOCKET_EAFNOSUPPORT] => 47
[SOCKET_EADDRINUSE] => 48
[SOCKET_EADDRNOTAVAIL] => 49
[SOCKET_ENETDOWN] => 50
[SOCKET_ENETUNREACH] => 51
[SOCKET_ENETRESET] => 52
[SOCKET_ECONNABORTED] => 53
[SOCKET_ECONNRESET] => 54
[SOCKET_ENOBUFS] => 55
[SOCKET_EISCONN] => 56
[SOCKET_ENOTCONN] => 57
[SOCKET_ESHUTDOWN] => 58
[SOCKET_ETOOMANYREFS] => 59
[SOCKET_ETIMEDOUT] => 60
[SOCKET_ECONNREFUSED] => 61
[SOCKET_EHOSTDOWN] => 64
[SOCKET_EHOSTUNREACH] => 65
[SOCKET_EALREADY] => 37
[SOCKET_EINPROGRESS] => 36
[SOCKET_EDQUOT] => 69
[IPPROTO_IP] => 0
[IPPROTO_IPV6] => 41
[SOL_TCP] => 6
[SOL_UDP] => 17
[IPV6_UNICAST_HOPS] => 4
[AI_PASSIVE] => 1
[AI_CANONNAME] => 2
[AI_NUMERICHOST] => 4
[AI_V4MAPPED] => 2048
[AI_ALL] => 256
[AI_ADDRCONFIG] => 1024
[AI_NUMERICSERV] => 4096
[IPV6_RECVPKTINFO] => 61
[IPV6_PKTINFO] => 46
[IPV6_RECVHOPLIMIT] => 37
[IPV6_HOPLIMIT] => 47
[IPV6_RECVTCLASS] => 35
[IPV6_TCLASS] => 36
[SCM_RIGHTS] => 1
Last updated on February 7, 2023