diff options
Diffstat (limited to 'src/websockets')
-rw-r--r-- | src/websockets/qwebsocketdataprocessor_p.h | 1 | ||||
-rw-r--r-- | src/websockets/qwebsocketframe_p.h | 3 | ||||
-rw-r--r-- | src/websockets/qwebsocketprotocol.h | 20 | ||||
-rw-r--r-- | src/websockets/qwebsocketprotocol_p.h | 20 |
4 files changed, 23 insertions, 21 deletions
diff --git a/src/websockets/qwebsocketdataprocessor_p.h b/src/websockets/qwebsocketdataprocessor_p.h index e4252a7..256bcf4 100644 --- a/src/websockets/qwebsocketdataprocessor_p.h +++ b/src/websockets/qwebsocketdataprocessor_p.h @@ -58,6 +58,7 @@ #include <QtCore/QString> #include <QtCore/QTextCodec> #include "qwebsocketprotocol.h" +#include "qwebsocketprotocol_p.h" QT_BEGIN_NAMESPACE diff --git a/src/websockets/qwebsocketframe_p.h b/src/websockets/qwebsocketframe_p.h index bf7e1d5..74597a2 100644 --- a/src/websockets/qwebsocketframe_p.h +++ b/src/websockets/qwebsocketframe_p.h @@ -46,8 +46,9 @@ #include <QtCore/QByteArray> #include <limits.h> -#include "qwebsocketprotocol.h" #include "qwebsockets_global.h" +#include "qwebsocketprotocol.h" +#include "qwebsocketprotocol_p.h" QT_BEGIN_NAMESPACE diff --git a/src/websockets/qwebsocketprotocol.h b/src/websockets/qwebsocketprotocol.h index 89dbed4..de62d75 100644 --- a/src/websockets/qwebsocketprotocol.h +++ b/src/websockets/qwebsocketprotocol.h @@ -84,26 +84,6 @@ enum CloseCode CC_TLS_HANDSHAKE_FAILED = 1015 }; -enum OpCode -{ - OC_CONTINUE = 0x0, - OC_TEXT = 0x1, - OC_BINARY = 0x2, - OC_RESERVED_3 = 0x3, - OC_RESERVED_4 = 0x4, - OC_RESERVED_5 = 0x5, - OC_RESERVED_6 = 0x6, - OC_RESERVED_7 = 0x7, - OC_CLOSE = 0x8, - OC_PING = 0x9, - OC_PONG = 0xA, - OC_RESERVED_B = 0xB, - OC_RESERVED_C = 0xC, - OC_RESERVED_D = 0xD, - OC_RESERVED_E = 0xE, - OC_RESERVED_F = 0xF -}; - inline Version currentVersion() { return V_LATEST; } } //end namespace QWebSocketProtocol diff --git a/src/websockets/qwebsocketprotocol_p.h b/src/websockets/qwebsocketprotocol_p.h index 2f29e14..2fcbb4d 100644 --- a/src/websockets/qwebsocketprotocol_p.h +++ b/src/websockets/qwebsocketprotocol_p.h @@ -52,6 +52,26 @@ class QByteArray; namespace QWebSocketProtocol { +enum OpCode +{ + OC_CONTINUE = 0x0, + OC_TEXT = 0x1, + OC_BINARY = 0x2, + OC_RESERVED_3 = 0x3, + OC_RESERVED_4 = 0x4, + OC_RESERVED_5 = 0x5, + OC_RESERVED_6 = 0x6, + OC_RESERVED_7 = 0x7, + OC_CLOSE = 0x8, + OC_PING = 0x9, + OC_PONG = 0xA, + OC_RESERVED_B = 0xB, + OC_RESERVED_C = 0xC, + OC_RESERVED_D = 0xD, + OC_RESERVED_E = 0xE, + OC_RESERVED_F = 0xF +}; + inline bool isOpCodeReserved(OpCode code) { return ((code > OC_BINARY) && (code < OC_CLOSE)) || (code > OC_PONG); |