constants.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <?php
  2. define('SWOOLE_VERSION', '4.6.7');
  3. define('SWOOLE_VERSION_ID', 40607);
  4. define('SWOOLE_MAJOR_VERSION', 4);
  5. define('SWOOLE_MINOR_VERSION', 6);
  6. define('SWOOLE_RELEASE_VERSION', 7);
  7. define('SWOOLE_EXTRA_VERSION', '');
  8. define('SWOOLE_DEBUG', '');
  9. define('SWOOLE_HAVE_COMPRESSION', '1');
  10. define('SWOOLE_HAVE_ZLIB', '1');
  11. define('SWOOLE_USE_HTTP2', '1');
  12. define('SWOOLE_USE_SHORTNAME', '1');
  13. define('SWOOLE_BASE', 1);
  14. define('SWOOLE_PROCESS', 2);
  15. define('SWOOLE_IPC_UNSOCK', 1);
  16. define('SWOOLE_IPC_MSGQUEUE', 2);
  17. define('SWOOLE_IPC_PREEMPTIVE', 3);
  18. define('SWOOLE_SOCK_TCP', 1);
  19. define('SWOOLE_SOCK_TCP6', 3);
  20. define('SWOOLE_SOCK_UDP', 2);
  21. define('SWOOLE_SOCK_UDP6', 4);
  22. define('SWOOLE_SOCK_UNIX_DGRAM', 6);
  23. define('SWOOLE_SOCK_UNIX_STREAM', 5);
  24. define('SWOOLE_TCP', 1);
  25. define('SWOOLE_TCP6', 3);
  26. define('SWOOLE_UDP', 2);
  27. define('SWOOLE_UDP6', 4);
  28. define('SWOOLE_UNIX_DGRAM', 6);
  29. define('SWOOLE_UNIX_STREAM', 5);
  30. define('SWOOLE_SOCK_SYNC', '');
  31. define('SWOOLE_SOCK_ASYNC', '1');
  32. define('SWOOLE_SYNC', 2048);
  33. define('SWOOLE_ASYNC', 1024);
  34. define('SWOOLE_KEEP', 4096);
  35. define('SWOOLE_SSL', 512);
  36. define('SWOOLE_SSLv3_METHOD', 1);
  37. define('SWOOLE_SSLv3_SERVER_METHOD', 2);
  38. define('SWOOLE_SSLv3_CLIENT_METHOD', 3);
  39. define('SWOOLE_TLSv1_METHOD', 6);
  40. define('SWOOLE_TLSv1_SERVER_METHOD', 7);
  41. define('SWOOLE_TLSv1_CLIENT_METHOD', 8);
  42. define('SWOOLE_TLSv1_1_METHOD', 9);
  43. define('SWOOLE_TLSv1_1_SERVER_METHOD', 10);
  44. define('SWOOLE_TLSv1_1_CLIENT_METHOD', 11);
  45. define('SWOOLE_TLSv1_2_METHOD', 12);
  46. define('SWOOLE_TLSv1_2_SERVER_METHOD', 13);
  47. define('SWOOLE_TLSv1_2_CLIENT_METHOD', 14);
  48. define('SWOOLE_DTLS_SERVER_METHOD', 16);
  49. define('SWOOLE_DTLS_CLIENT_METHOD', 15);
  50. define('SWOOLE_SSLv23_METHOD', 0);
  51. define('SWOOLE_SSLv23_SERVER_METHOD', 4);
  52. define('SWOOLE_SSLv23_CLIENT_METHOD', 5);
  53. define('SWOOLE_TLS_METHOD', 0);
  54. define('SWOOLE_TLS_SERVER_METHOD', 4);
  55. define('SWOOLE_TLS_CLIENT_METHOD', 5);
  56. define('SWOOLE_SSL_TLSv1', 8);
  57. define('SWOOLE_SSL_TLSv1_1', 16);
  58. define('SWOOLE_SSL_TLSv1_2', 32);
  59. define('SWOOLE_SSL_TLSv1_3', 64);
  60. define('SWOOLE_SSL_DTLS', 128);
  61. define('SWOOLE_SSL_SSLv2', 2);
  62. define('SWOOLE_EVENT_READ', 512);
  63. define('SWOOLE_EVENT_WRITE', 1024);
  64. define('SWOOLE_STRERROR_SYSTEM', 0);
  65. define('SWOOLE_STRERROR_GAI', 1);
  66. define('SWOOLE_STRERROR_DNS', 2);
  67. define('SWOOLE_STRERROR_SWOOLE', 9);
  68. define('SWOOLE_ERROR_MALLOC_FAIL', 501);
  69. define('SWOOLE_ERROR_SYSTEM_CALL_FAIL', 502);
  70. define('SWOOLE_ERROR_PHP_FATAL_ERROR', 503);
  71. define('SWOOLE_ERROR_NAME_TOO_LONG', 504);
  72. define('SWOOLE_ERROR_INVALID_PARAMS', 505);
  73. define('SWOOLE_ERROR_QUEUE_FULL', 506);
  74. define('SWOOLE_ERROR_OPERATION_NOT_SUPPORT', 507);
  75. define('SWOOLE_ERROR_PROTOCOL_ERROR', 508);
  76. define('SWOOLE_ERROR_WRONG_OPERATION', 509);
  77. define('SWOOLE_ERROR_FILE_NOT_EXIST', 700);
  78. define('SWOOLE_ERROR_FILE_TOO_LARGE', 701);
  79. define('SWOOLE_ERROR_FILE_EMPTY', 702);
  80. define('SWOOLE_ERROR_DNSLOOKUP_DUPLICATE_REQUEST', 703);
  81. define('SWOOLE_ERROR_DNSLOOKUP_RESOLVE_FAILED', 704);
  82. define('SWOOLE_ERROR_DNSLOOKUP_RESOLVE_TIMEOUT', 705);
  83. define('SWOOLE_ERROR_BAD_IPV6_ADDRESS', 706);
  84. define('SWOOLE_ERROR_UNREGISTERED_SIGNAL', 707);
  85. define('SWOOLE_ERROR_EVENT_SOCKET_REMOVED', 800);
  86. define('SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER', 1001);
  87. define('SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT', 1002);
  88. define('SWOOLE_ERROR_SESSION_CLOSING', 1003);
  89. define('SWOOLE_ERROR_SESSION_CLOSED', 1004);
  90. define('SWOOLE_ERROR_SESSION_NOT_EXIST', 1005);
  91. define('SWOOLE_ERROR_SESSION_INVALID_ID', 1006);
  92. define('SWOOLE_ERROR_SESSION_DISCARD_TIMEOUT_DATA', 1007);
  93. define('SWOOLE_ERROR_SESSION_DISCARD_DATA', 1008);
  94. define('SWOOLE_ERROR_OUTPUT_BUFFER_OVERFLOW', 1009);
  95. define('SWOOLE_ERROR_OUTPUT_SEND_YIELD', 1010);
  96. define('SWOOLE_ERROR_SSL_NOT_READY', 1011);
  97. define('SWOOLE_ERROR_SSL_CANNOT_USE_SENFILE', 1012);
  98. define('SWOOLE_ERROR_SSL_EMPTY_PEER_CERTIFICATE', 1013);
  99. define('SWOOLE_ERROR_SSL_VERIFY_FAILED', 1014);
  100. define('SWOOLE_ERROR_SSL_BAD_CLIENT', 1015);
  101. define('SWOOLE_ERROR_SSL_BAD_PROTOCOL', 1016);
  102. define('SWOOLE_ERROR_SSL_RESET', 1017);
  103. define('SWOOLE_ERROR_SSL_HANDSHAKE_FAILED', 1018);
  104. define('SWOOLE_ERROR_PACKAGE_LENGTH_TOO_LARGE', 1201);
  105. define('SWOOLE_ERROR_PACKAGE_LENGTH_NOT_FOUND', 1202);
  106. define('SWOOLE_ERROR_DATA_LENGTH_TOO_LARGE', 1203);
  107. define('SWOOLE_ERROR_TASK_PACKAGE_TOO_BIG', 2001);
  108. define('SWOOLE_ERROR_TASK_DISPATCH_FAIL', 2002);
  109. define('SWOOLE_ERROR_TASK_TIMEOUT', 2003);
  110. define('SWOOLE_ERROR_HTTP2_STREAM_ID_TOO_BIG', 3001);
  111. define('SWOOLE_ERROR_HTTP2_STREAM_NO_HEADER', 3002);
  112. define('SWOOLE_ERROR_HTTP2_STREAM_NOT_FOUND', 3003);
  113. define('SWOOLE_ERROR_HTTP2_STREAM_IGNORE', 3004);
  114. define('SWOOLE_ERROR_AIO_BAD_REQUEST', 4001);
  115. define('SWOOLE_ERROR_AIO_CANCELED', 4002);
  116. define('SWOOLE_ERROR_AIO_TIMEOUT', 4003);
  117. define('SWOOLE_ERROR_CLIENT_NO_CONNECTION', 5001);
  118. define('SWOOLE_ERROR_SOCKET_CLOSED', 6001);
  119. define('SWOOLE_ERROR_SOCKET_POLL_TIMEOUT', 6002);
  120. define('SWOOLE_ERROR_SOCKS5_UNSUPPORT_VERSION', 7001);
  121. define('SWOOLE_ERROR_SOCKS5_UNSUPPORT_METHOD', 7002);
  122. define('SWOOLE_ERROR_SOCKS5_AUTH_FAILED', 7003);
  123. define('SWOOLE_ERROR_SOCKS5_SERVER_ERROR', 7004);
  124. define('SWOOLE_ERROR_SOCKS5_HANDSHAKE_FAILED', 7005);
  125. define('SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_ERROR', 7101);
  126. define('SWOOLE_ERROR_HTTP_INVALID_PROTOCOL', 7102);
  127. define('SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_FAILED', 7103);
  128. define('SWOOLE_ERROR_HTTP_PROXY_BAD_RESPONSE', 7104);
  129. define('SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT', 8501);
  130. define('SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE', 8502);
  131. define('SWOOLE_ERROR_WEBSOCKET_UNCONNECTED', 8503);
  132. define('SWOOLE_ERROR_WEBSOCKET_HANDSHAKE_FAILED', 8504);
  133. define('SWOOLE_ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT', 9001);
  134. define('SWOOLE_ERROR_SERVER_TOO_MANY_SOCKET', 9002);
  135. define('SWOOLE_ERROR_SERVER_WORKER_TERMINATED', 9003);
  136. define('SWOOLE_ERROR_SERVER_INVALID_LISTEN_PORT', 9004);
  137. define('SWOOLE_ERROR_SERVER_TOO_MANY_LISTEN_PORT', 9005);
  138. define('SWOOLE_ERROR_SERVER_PIPE_BUFFER_FULL', 9006);
  139. define('SWOOLE_ERROR_SERVER_NO_IDLE_WORKER', 9007);
  140. define('SWOOLE_ERROR_SERVER_ONLY_START_ONE', 9008);
  141. define('SWOOLE_ERROR_SERVER_SEND_IN_MASTER', 9009);
  142. define('SWOOLE_ERROR_SERVER_INVALID_REQUEST', 9010);
  143. define('SWOOLE_ERROR_SERVER_CONNECT_FAIL', 9011);
  144. define('SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT', 9012);
  145. define('SWOOLE_ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA', 9013);
  146. define('SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA', 9014);
  147. define('SWOOLE_ERROR_CO_OUT_OF_COROUTINE', 10001);
  148. define('SWOOLE_ERROR_CO_HAS_BEEN_BOUND', 10002);
  149. define('SWOOLE_ERROR_CO_HAS_BEEN_DISCARDED', 10003);
  150. define('SWOOLE_ERROR_CO_MUTEX_DOUBLE_UNLOCK', 10004);
  151. define('SWOOLE_ERROR_CO_BLOCK_OBJECT_LOCKED', 10005);
  152. define('SWOOLE_ERROR_CO_BLOCK_OBJECT_WAITING', 10006);
  153. define('SWOOLE_ERROR_CO_YIELD_FAILED', 10007);
  154. define('SWOOLE_ERROR_CO_GETCONTEXT_FAILED', 10008);
  155. define('SWOOLE_ERROR_CO_SWAPCONTEXT_FAILED', 10009);
  156. define('SWOOLE_ERROR_CO_MAKECONTEXT_FAILED', 10010);
  157. define('SWOOLE_ERROR_CO_IOCPINIT_FAILED', 10011);
  158. define('SWOOLE_ERROR_CO_PROTECT_STACK_FAILED', 10012);
  159. define('SWOOLE_ERROR_CO_STD_THREAD_LINK_ERROR', 10013);
  160. define('SWOOLE_ERROR_CO_DISABLED_MULTI_THREAD', 10014);
  161. define('SWOOLE_TRACE_SERVER', 2);
  162. define('SWOOLE_TRACE_CLIENT', 4);
  163. define('SWOOLE_TRACE_BUFFER', 8);
  164. define('SWOOLE_TRACE_CONN', 16);
  165. define('SWOOLE_TRACE_EVENT', 32);
  166. define('SWOOLE_TRACE_WORKER', 64);
  167. define('SWOOLE_TRACE_MEMORY', 128);
  168. define('SWOOLE_TRACE_REACTOR', 256);
  169. define('SWOOLE_TRACE_PHP', 512);
  170. define('SWOOLE_TRACE_HTTP', 1024);
  171. define('SWOOLE_TRACE_HTTP2', 2048);
  172. define('SWOOLE_TRACE_EOF_PROTOCOL', 4096);
  173. define('SWOOLE_TRACE_LENGTH_PROTOCOL', 8192);
  174. define('SWOOLE_TRACE_CLOSE', 16384);
  175. define('SWOOLE_TRACE_WEBSOCEKT', 32768);
  176. define('SWOOLE_TRACE_REDIS_CLIENT', 65536);
  177. define('SWOOLE_TRACE_MYSQL_CLIENT', 131072);
  178. define('SWOOLE_TRACE_HTTP_CLIENT', 262144);
  179. define('SWOOLE_TRACE_AIO', 524288);
  180. define('SWOOLE_TRACE_SSL', 1048576);
  181. define('SWOOLE_TRACE_NORMAL', 2097152);
  182. define('SWOOLE_TRACE_CHANNEL', 4194304);
  183. define('SWOOLE_TRACE_TIMER', 8388608);
  184. define('SWOOLE_TRACE_SOCKET', 16777216);
  185. define('SWOOLE_TRACE_COROUTINE', 33554432);
  186. define('SWOOLE_TRACE_CONTEXT', 67108864);
  187. define('SWOOLE_TRACE_CO_HTTP_SERVER', 134217728);
  188. define('SWOOLE_TRACE_TABLE', 268435456);
  189. define('SWOOLE_TRACE_CO_CURL', 536870912);
  190. define('SWOOLE_TRACE_ALL', 4294967295);
  191. define('SWOOLE_LOG_DEBUG', 0);
  192. define('SWOOLE_LOG_TRACE', 1);
  193. define('SWOOLE_LOG_INFO', 2);
  194. define('SWOOLE_LOG_NOTICE', 3);
  195. define('SWOOLE_LOG_WARNING', 4);
  196. define('SWOOLE_LOG_ERROR', 5);
  197. define('SWOOLE_LOG_NONE', 6);
  198. define('SWOOLE_LOG_ROTATION_SINGLE', 0);
  199. define('SWOOLE_LOG_ROTATION_MONTHLY', 1);
  200. define('SWOOLE_LOG_ROTATION_DAILY', 2);
  201. define('SWOOLE_LOG_ROTATION_HOURLY', 3);
  202. define('SWOOLE_LOG_ROTATION_EVERY_MINUTE', 4);
  203. define('SWOOLE_IPC_NONE', 0);
  204. define('SWOOLE_IPC_UNIXSOCK', 1);
  205. define('SWOOLE_IPC_SOCKET', 3);
  206. define('SWOOLE_IOV_MAX', 1024);
  207. define('SWOOLE_FILELOCK', 2);
  208. define('SWOOLE_MUTEX', 3);
  209. define('SWOOLE_SEM', 4);
  210. define('SWOOLE_RWLOCK', 1);
  211. define('SWOOLE_SPINLOCK', 5);
  212. define('SIGHUP', 1);
  213. define('SIGINT', 2);
  214. define('SIGQUIT', 3);
  215. define('SIGILL', 4);
  216. define('SIGTRAP', 5);
  217. define('SIGABRT', 6);
  218. define('SIGBUS', 7);
  219. define('SIGFPE', 8);
  220. define('SIGKILL', 9);
  221. define('SIGUSR1', 10);
  222. define('SIGSEGV', 11);
  223. define('SIGUSR2', 12);
  224. define('SIGPIPE', 13);
  225. define('SIGALRM', 14);
  226. define('SIGTERM', 15);
  227. define('SIGSTKFLT', 16);
  228. define('SIGCHLD', 17);
  229. define('SIGCONT', 18);
  230. define('SIGSTOP', 19);
  231. define('SIGTSTP', 20);
  232. define('SIGTTIN', 21);
  233. define('SIGTTOU', 22);
  234. define('SIGURG', 23);
  235. define('SIGXCPU', 24);
  236. define('SIGXFSZ', 25);
  237. define('SIGVTALRM', 26);
  238. define('SIGPROF', 27);
  239. define('SIGWINCH', 28);
  240. define('SIGIO', 29);
  241. define('SIGPWR', 30);
  242. define('SIGSYS', 31);
  243. define('SIG_IGN', 1);
  244. define('PRIO_PROCESS', 0);
  245. define('PRIO_PGRP', 1);
  246. define('PRIO_USER', 2);
  247. define('SWOOLE_TIMER_MIN_MS', 1);
  248. define('SWOOLE_TIMER_MIN_SEC', 0.001);
  249. define('SWOOLE_TIMER_MAX_MS', 9223372036854775807);
  250. define('SWOOLE_TIMER_MAX_SEC', 9.2233720368548E+15);
  251. define('SWOOLE_DEFAULT_MAX_CORO_NUM', 100000);
  252. define('SWOOLE_CORO_MAX_NUM_LIMIT', 9223372036854775807);
  253. define('SWOOLE_CORO_INIT', 0);
  254. define('SWOOLE_CORO_WAITING', 1);
  255. define('SWOOLE_CORO_RUNNING', 2);
  256. define('SWOOLE_CORO_END', 3);
  257. define('SWOOLE_EXIT_IN_COROUTINE', 2);
  258. define('SWOOLE_EXIT_IN_SERVER', 4);
  259. define('SWOOLE_CHANNEL_OK', 0);
  260. define('SWOOLE_CHANNEL_TIMEOUT', -1);
  261. define('SWOOLE_CHANNEL_CLOSED', -2);
  262. define('SWOOLE_HOOK_TCP', 2);
  263. define('SWOOLE_HOOK_UDP', 4);
  264. define('SWOOLE_HOOK_UNIX', 8);
  265. define('SWOOLE_HOOK_UDG', 16);
  266. define('SWOOLE_HOOK_SSL', 32);
  267. define('SWOOLE_HOOK_TLS', 64);
  268. define('SWOOLE_HOOK_STREAM_FUNCTION', 128);
  269. define('SWOOLE_HOOK_STREAM_SELECT', 128);
  270. define('SWOOLE_HOOK_FILE', 256);
  271. define('SWOOLE_HOOK_STDIO', 32768);
  272. define('SWOOLE_HOOK_SLEEP', 512);
  273. define('SWOOLE_HOOK_PROC', 1024);
  274. define('SWOOLE_HOOK_CURL', 2048);
  275. define('SWOOLE_HOOK_NATIVE_CURL', 4096);
  276. define('SWOOLE_HOOK_BLOCKING_FUNCTION', 8192);
  277. define('SWOOLE_HOOK_SOCKETS', 16384);
  278. define('SWOOLE_HOOK_ALL', 2147481599);
  279. define('SOCKET_ECANCELED', 125);
  280. define('SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED', -1);
  281. define('SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT', -2);
  282. define('SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET', -3);
  283. define('SWOOLE_HTTP_CLIENT_ESTATUS_SEND_FAILED', -4);
  284. define('SWOOLE_MYSQLND_CR_UNKNOWN_ERROR', 2000);
  285. define('SWOOLE_MYSQLND_CR_CONNECTION_ERROR', 2002);
  286. define('SWOOLE_MYSQLND_CR_SERVER_GONE_ERROR', 2006);
  287. define('SWOOLE_MYSQLND_CR_OUT_OF_MEMORY', 2008);
  288. define('SWOOLE_MYSQLND_CR_SERVER_LOST', 2013);
  289. define('SWOOLE_MYSQLND_CR_COMMANDS_OUT_OF_SYNC', 2014);
  290. define('SWOOLE_MYSQLND_CR_CANT_FIND_CHARSET', 2019);
  291. define('SWOOLE_MYSQLND_CR_MALFORMED_PACKET', 2027);
  292. define('SWOOLE_MYSQLND_CR_NOT_IMPLEMENTED', 2054);
  293. define('SWOOLE_MYSQLND_CR_NO_PREPARE_STMT', 2030);
  294. define('SWOOLE_MYSQLND_CR_PARAMS_NOT_BOUND', 2031);
  295. define('SWOOLE_MYSQLND_CR_INVALID_PARAMETER_NO', 2034);
  296. define('SWOOLE_MYSQLND_CR_INVALID_BUFFER_USE', 2035);
  297. define('SWOOLE_REDIS_MODE_MULTI', 0);
  298. define('SWOOLE_REDIS_MODE_PIPELINE', 1);
  299. define('SWOOLE_REDIS_TYPE_NOT_FOUND', 0);
  300. define('SWOOLE_REDIS_TYPE_STRING', 1);
  301. define('SWOOLE_REDIS_TYPE_SET', 2);
  302. define('SWOOLE_REDIS_TYPE_LIST', 3);
  303. define('SWOOLE_REDIS_TYPE_ZSET', 4);
  304. define('SWOOLE_REDIS_TYPE_HASH', 5);
  305. define('SWOOLE_REDIS_ERR_IO', 1);
  306. define('SWOOLE_REDIS_ERR_OTHER', 2);
  307. define('SWOOLE_REDIS_ERR_EOF', 3);
  308. define('SWOOLE_REDIS_ERR_PROTOCOL', 4);
  309. define('SWOOLE_REDIS_ERR_OOM', 5);
  310. define('SWOOLE_REDIS_ERR_CLOSED', 6);
  311. define('SWOOLE_REDIS_ERR_NOAUTH', 7);
  312. define('SWOOLE_REDIS_ERR_ALLOC', 8);
  313. define('SWOOLE_HTTP2_TYPE_DATA', 0);
  314. define('SWOOLE_HTTP2_TYPE_HEADERS', 1);
  315. define('SWOOLE_HTTP2_TYPE_PRIORITY', 2);
  316. define('SWOOLE_HTTP2_TYPE_RST_STREAM', 3);
  317. define('SWOOLE_HTTP2_TYPE_SETTINGS', 4);
  318. define('SWOOLE_HTTP2_TYPE_PUSH_PROMISE', 5);
  319. define('SWOOLE_HTTP2_TYPE_PING', 6);
  320. define('SWOOLE_HTTP2_TYPE_GOAWAY', 7);
  321. define('SWOOLE_HTTP2_TYPE_WINDOW_UPDATE', 8);
  322. define('SWOOLE_HTTP2_TYPE_CONTINUATION', 9);
  323. define('SWOOLE_HTTP2_ERROR_NO_ERROR', 0);
  324. define('SWOOLE_HTTP2_ERROR_PROTOCOL_ERROR', 1);
  325. define('SWOOLE_HTTP2_ERROR_INTERNAL_ERROR', 2);
  326. define('SWOOLE_HTTP2_ERROR_FLOW_CONTROL_ERROR', 3);
  327. define('SWOOLE_HTTP2_ERROR_SETTINGS_TIMEOUT', 4);
  328. define('SWOOLE_HTTP2_ERROR_STREAM_CLOSED', 5);
  329. define('SWOOLE_HTTP2_ERROR_FRAME_SIZE_ERROR', 6);
  330. define('SWOOLE_HTTP2_ERROR_REFUSED_STREAM', 7);
  331. define('SWOOLE_HTTP2_ERROR_CANCEL', 8);
  332. define('SWOOLE_HTTP2_ERROR_COMPRESSION_ERROR', 9);
  333. define('SWOOLE_HTTP2_ERROR_CONNECT_ERROR', 10);
  334. define('SWOOLE_HTTP2_ERROR_ENHANCE_YOUR_CALM', 11);
  335. define('SWOOLE_HTTP2_ERROR_INADEQUATE_SECURITY', 12);
  336. define('SWOOLE_DISPATCH_RESULT_DISCARD_PACKET', -1);
  337. define('SWOOLE_DISPATCH_RESULT_CLOSE_CONNECTION', -2);
  338. define('SWOOLE_DISPATCH_RESULT_USERFUNC_FALLBACK', -3);
  339. define('SWOOLE_TASK_TMPFILE', 1);
  340. define('SWOOLE_TASK_SERIALIZE', 2);
  341. define('SWOOLE_TASK_NONBLOCK', 4);
  342. define('SWOOLE_TASK_CALLBACK', 8);
  343. define('SWOOLE_TASK_WAITALL', 16);
  344. define('SWOOLE_TASK_COROUTINE', 32);
  345. define('SWOOLE_TASK_PEEK', 64);
  346. define('SWOOLE_TASK_NOREPLY', 128);
  347. define('SWOOLE_WORKER_BUSY', 1);
  348. define('SWOOLE_WORKER_IDLE', 2);
  349. define('SWOOLE_WORKER_EXIT', 3);
  350. define('SWOOLE_WEBSOCKET_STATUS_CONNECTION', 1);
  351. define('SWOOLE_WEBSOCKET_STATUS_HANDSHAKE', 2);
  352. define('SWOOLE_WEBSOCKET_STATUS_ACTIVE', 3);
  353. define('SWOOLE_WEBSOCKET_STATUS_CLOSING', 4);
  354. define('SWOOLE_WEBSOCKET_OPCODE_CONTINUATION', 0);
  355. define('SWOOLE_WEBSOCKET_OPCODE_TEXT', 1);
  356. define('SWOOLE_WEBSOCKET_OPCODE_BINARY', 2);
  357. define('SWOOLE_WEBSOCKET_OPCODE_CLOSE', 8);
  358. define('SWOOLE_WEBSOCKET_OPCODE_PING', 9);
  359. define('SWOOLE_WEBSOCKET_OPCODE_PONG', 10);
  360. define('SWOOLE_WEBSOCKET_FLAG_FIN', 1);
  361. define('SWOOLE_WEBSOCKET_FLAG_RSV1', 4);
  362. define('SWOOLE_WEBSOCKET_FLAG_RSV2', 8);
  363. define('SWOOLE_WEBSOCKET_FLAG_RSV3', 16);
  364. define('SWOOLE_WEBSOCKET_FLAG_MASK', 32);
  365. define('SWOOLE_WEBSOCKET_FLAG_COMPRESS', 2);
  366. define('SWOOLE_WEBSOCKET_CLOSE_NORMAL', 1000);
  367. define('SWOOLE_WEBSOCKET_CLOSE_GOING_AWAY', 1001);
  368. define('SWOOLE_WEBSOCKET_CLOSE_PROTOCOL_ERROR', 1002);
  369. define('SWOOLE_WEBSOCKET_CLOSE_DATA_ERROR', 1003);
  370. define('SWOOLE_WEBSOCKET_CLOSE_STATUS_ERROR', 1005);
  371. define('SWOOLE_WEBSOCKET_CLOSE_ABNORMAL', 1006);
  372. define('SWOOLE_WEBSOCKET_CLOSE_MESSAGE_ERROR', 1007);
  373. define('SWOOLE_WEBSOCKET_CLOSE_POLICY_ERROR', 1008);
  374. define('SWOOLE_WEBSOCKET_CLOSE_MESSAGE_TOO_BIG', 1009);
  375. define('SWOOLE_WEBSOCKET_CLOSE_EXTENSION_MISSING', 1010);
  376. define('SWOOLE_WEBSOCKET_CLOSE_SERVER_ERROR', 1011);
  377. define('SWOOLE_WEBSOCKET_CLOSE_TLS', 1015);
  378. define('WEBSOCKET_STATUS_CONNECTION', 1);
  379. define('WEBSOCKET_STATUS_HANDSHAKE', 2);
  380. define('WEBSOCKET_STATUS_FRAME', 3);
  381. define('WEBSOCKET_STATUS_ACTIVE', 3);
  382. define('WEBSOCKET_STATUS_CLOSING', 4);
  383. define('WEBSOCKET_OPCODE_CONTINUATION', 0);
  384. define('WEBSOCKET_OPCODE_TEXT', 1);
  385. define('WEBSOCKET_OPCODE_BINARY', 2);
  386. define('WEBSOCKET_OPCODE_CLOSE', 8);
  387. define('WEBSOCKET_OPCODE_PING', 9);
  388. define('WEBSOCKET_OPCODE_PONG', 10);
  389. define('WEBSOCKET_CLOSE_NORMAL', 1000);
  390. define('WEBSOCKET_CLOSE_GOING_AWAY', 1001);
  391. define('WEBSOCKET_CLOSE_PROTOCOL_ERROR', 1002);
  392. define('WEBSOCKET_CLOSE_DATA_ERROR', 1003);
  393. define('WEBSOCKET_CLOSE_STATUS_ERROR', 1005);
  394. define('WEBSOCKET_CLOSE_ABNORMAL', 1006);
  395. define('WEBSOCKET_CLOSE_MESSAGE_ERROR', 1007);
  396. define('WEBSOCKET_CLOSE_POLICY_ERROR', 1008);
  397. define('WEBSOCKET_CLOSE_MESSAGE_TOO_BIG', 1009);
  398. define('WEBSOCKET_CLOSE_EXTENSION_MISSING', 1010);
  399. define('WEBSOCKET_CLOSE_SERVER_ERROR', 1011);
  400. define('WEBSOCKET_CLOSE_TLS', 1015);