fastdo
0.6.16
|
类 | |
struct | ws::FrameBase |
WS帧基类 更多... | |
struct | ws::FrameBasic |
struct | ws::FrameBasicMasked |
struct | ws::FrameExtended16 |
struct | ws::FrameExtended16Masked |
struct | ws::FrameExtended64 |
struct | ws::FrameExtended64Masked |
struct | ws::CloseFramePayloadData |
class | ws::WsHttpRequestCtx |
WebSocket客户请求场景 更多... | |
class | ws::WsHttpServer |
WebSocket服务器 更多... | |
命名空间 | |
ws | |
WebSocket封装 | |
枚举 | |
enum | ws::OpCode : winux::uint { ws::dataContinued = 0x0U, ws::dataText = 0x1U, ws::dataBinary = 0x2U, ws::dataRsv3 = 0x3U, ws::dataRsv4 = 0x4U, ws::dataRsv5 = 0x5U, ws::dataRsv6 = 0x6U, ws::dataRsv7 = 0x7U, ws::ctrlClose = 0x8U, ws::ctrlPing = 0x9U, ws::ctrlPong = 0xAU, ws::ctrlRsvB = 0xBU, ws::ctrlRsvC = 0xCU, ws::ctrlRsvD = 0xDU, ws::ctrlRsvE = 0xEU, ws::ctrlRsvF = 0xFU } |
操作码 更多... | |
enum | ws::WebSocketErrorCode { ws::errNothing, ws::errCnnUnexpectedInvalid } |
WebSocket错误码 更多... | |
enum | ws::FrameType { ws::ftBasic = 0b0010, ws::ftBasicMasked = 0b0011, ws::ftExtended16 = 0b0100, ws::ftExtended16Masked = 0b0101, ws::ftExtended64 = 0b1000, ws::ftExtended64Masked = 0b1001 } |
数据帧类型 更多... | |
enum | ws::ReadyState { ws::stateNone, ws::stateConnecting, ws::stateOpen, ws::stateClosing, ws::stateClosed } |
就绪状态 更多... | |
函数 | |
winux::Buffer | ws::BuildFrame (OpCode opcode, bool fin, bool mask, winux::byte *payloadData=nullptr, size_t payloadDataSize=0) |
std::vector< winux::Buffer > | ws::BuildFramesFromData (OpCode opcode, bool mask, winux::Buffer payloadData=winux::Buffer(), size_t perFrameMaxPayloadSize=-1) |