From fb2e7158f66796b98d5f22245d251e460456aed3 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 25 Dec 2013 16:05:57 -0800 Subject: Adding (hopefully) support for interleaved websocket control frames. --- includes/BWebSocket.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'includes/BWebSocket.h') diff --git a/includes/BWebSocket.h b/includes/BWebSocket.h index 0d0a56f..5714053 100644 --- a/includes/BWebSocket.h +++ b/includes/BWebSocket.h @@ -61,11 +61,22 @@ private: uint64_t m_remainingBytes; uint32_t m_mask; uint8_t m_opcode; + + uint8_t * m_payloadCTRL = NULL; + uint64_t m_payloadLenCTRL; + uint64_t m_totalLenCTRL; + uint64_t m_remainingBytesCTRL; + uint32_t m_maskCTRL; + uint8_t m_opcodeCTRL; + bool m_hasMask; + bool m_hasMaskCTRL; + bool m_fin; bool m_firstFragment = true; bool m_enforceServer = false; bool m_enforceClient = false; + bool m_inCTRL = false; enum { OPCODE_CONT = 0, OPCODE_TEXT = 1, -- cgit v1.2.3