summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-25 16:05:57 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-25 16:05:57 -0800
commitfb2e7158f66796b98d5f22245d251e460456aed3 (patch)
tree8ce08cdf8b6b3d4f9368d5dafad414d8dd11e273 /includes
parenta4eb01224bace97138be97d41f6691d649032cef (diff)
Adding (hopefully) support for interleaved websocket control frames.
Diffstat (limited to 'includes')
-rw-r--r--includes/BWebSocket.h11
1 files changed, 11 insertions, 0 deletions
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,