|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
WebSocket协议实现 更多...
#include "NeForce/core/async/atomic.hpp"#include "NeForce/core/async/condition_variable.hpp"#include "NeForce/core/async/thread.hpp"#include "NeForce/core/container/queue.hpp"#include "NeForce/core/container/unordered_map.hpp"#include "NeForce/core/functional/function.hpp"#include "NeForce/core/memory/shared_ptr.hpp"#include "NeForce/network/http/http_server_message.hpp"#include "NeForce/network/ssl/ssl_socket.hpp"类 | |
| struct | websocket_frame_header |
| WebSocket帧头部结构 更多... | |
| class | websocket_server |
| WebSocket服务器类 更多... | |
| class | websocket_session |
| WebSocket会话类 更多... | |
枚举 | |
| enum class | websocket_status : uint16_t { websocket_status::NORMAL_CLOSURE = 1000 , websocket_status::GOING_AWAY = 1001 , websocket_status::PROTOCOL_ERROR = 1002 , websocket_status::UNSUPPORTED_DATA = 1003 , websocket_status::RESERVED = 1004 , websocket_status::NO_STATUS_RCVD = 1005 , websocket_status::ABNORMAL_CLOSURE = 1006 , websocket_status::INVALID_FRAME_PAYLOAD_DATA = 1007 , websocket_status::POLICY_VIOLATION = 1008 , websocket_status::MESSAGE_TOO_BIG = 1009 , websocket_status::MANDATORY_EXT = 1010 , websocket_status::INTERNAL_ERROR = 1011 , websocket_status::SERVICE_RESTART = 1012 , websocket_status::TRY_AGAIN_LATER = 1013 , websocket_status::BAD_GATEWAY = 1014 , websocket_status::TLS_HANDSHAKE = 1015 } |
| WebSocket关闭状态码 更多... | |
| enum class | websocket_opcode : uint8_t { websocket_opcode::CONTINUATION = 0x0 , websocket_opcode::TEXT = 0x1 , websocket_opcode::BINARY = 0x2 , websocket_opcode::CLOSE = 0x8 , websocket_opcode::PING = 0x9 , websocket_opcode::PONG = 0xA } |
| WebSocket帧操作码 更多... | |