预定义常量

以下常量由此扩展定义,只有在扩展编译到 PHP 中或在运行时动态加载时才可用。

SWOOLE_BASE (int)
SWOOLE_THREAD (int)
SWOOLE_PROCESS (int)
SWOOLE_IPC_UNSOCK (int)
SWOOLE_IPC_MSGQUEUE (int)
SWOOLE_IPC_PREEMPTIVE (int)
SWOOLE_SOCK_TCP (int)
SWOOLE_SOCK_TCP6 (int)
SWOOLE_SOCK_UDP (int)
SWOOLE_SOCK_UDP6 (int)
SWOOLE_SOCK_UNIX_DGRAM (int)
SWOOLE_SOCK_UNIX_STREAM (int)
SWOOLE_TCP (int)
SWOOLE_TCP6 (int)
SWOOLE_UDP (int)
SWOOLE_UDP6 (int)
SWOOLE_UNIX_DGRAM (int)
SWOOLE_UNIX_STREAM (int)
SWOOLE_SOCK_SYNC (int)
SWOOLE_SOCK_ASYNC (int)
SWOOLE_SYNC (int)
SWOOLE_ASYNC (int)
SWOOLE_KEEP (int)
SWOOLE_EVENT_READ (int)
SWOOLE_EVENT_WRITE (int)
SWOOLE_VERSION (string)
SWOOLE_AIO_BASE (int)
SWOOLE_AIO_LINUX (int)
SWOOLE_FILELOCK (int)
SWOOLE_MUTEX (int)
SWOOLE_SEM (int)
SWOOLE_RWLOCK (int)
WEBSOCKET_OPCODE_TEXT (int)
WEBSOCKET_OPCODE_BINARY (int)
WEBSOCKET_OPCODE_PING (int)
WEBSOCKET_STATUS_CONNECTION (int)
WEBSOCKET_STATUS_HANDSHAKE (int)
WEBSOCKET_STATUS_FRAME (int)
WEBSOCKET_STATUS_ACTIVE (int)
SWOOLE_FAST_PACK (int)
SWOOLE_LOG_DEBUG (int)
调试日志。从 swoole 2.1.2 开始可用。
SWOOLE_LOG_TRACE (int)
跟踪日志。从 swoole 2.1.2 开始可用。
SWOOLE_LOG_INFO (int)
信息日志。从 swoole 2.1.2 开始可用。
SWOOLE_LOG_NOTICE (int)
注意日志。从 swoole 2.1.2 开始可用。
SWOOLE_LOG_WARNING (int)
警告日志。从 swoole 2.1.2 开始可用。
SWOOLE_LOG_ERROR (int)
错误日志。从 swoole 2.1.2 开始可用。
SWOOLE_LOG_NONE (int)
无日志。从 swoole 4.3.2 开始可用。

添加注释

用户贡献的注释

此页面没有用户贡献的注释。
To Top