diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-11-02 12:49:57 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-02 12:51:38 +0100 |
commit | 800ec535e684befd60c7fa11baff5dafbc9f020c (patch) | |
tree | b13591079718e361fbd74f378f44a5d9c90759f1 /src/websockets/qwebsocketprotocol.h | |
parent | 97c8e5a36dde11ddf238678e5711e5979c2c106b (diff) | |
download | qtwebsockets-800ec535e684befd60c7fa11baff5dafbc9f020c.tar.gz |
Move non-public methods from websocketprotocol to private header
Add bigendian conversion of masks to unit tests
Change-Id: I3f23fb62aac1c6d06e5fafb1bd4bc47cc03765ce
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocketprotocol.h')
-rw-r--r-- | src/websockets/qwebsocketprotocol.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/websockets/qwebsocketprotocol.h b/src/websockets/qwebsocketprotocol.h index 1a4097d..0fd342b 100644 --- a/src/websockets/qwebsocketprotocol.h +++ b/src/websockets/qwebsocketprotocol.h @@ -48,7 +48,6 @@ QT_BEGIN_NAMESPACE class QString; -class QByteArray; namespace QWebSocketProtocol { @@ -105,23 +104,6 @@ enum OpCode OC_RESERVED_F = 0xF }; - -inline bool isOpCodeReserved(OpCode code) -{ - return ((code > OC_BINARY) && (code < OC_CLOSE)) || (code > OC_PONG); -} -inline bool isCloseCodeValid(int closeCode) -{ - return (closeCode > 999) && (closeCode < 5000) && - (closeCode != CC_RESERVED_1004) && //see RFC6455 7.4.1 - (closeCode != CC_MISSING_STATUS_CODE) && - (closeCode != CC_ABNORMAL_DISCONNECTION) && - ((closeCode >= 3000) || (closeCode < 1012)); -} - -void Q_AUTOTEST_EXPORT mask(QByteArray *payload, quint32 maskingKey); -void Q_AUTOTEST_EXPORT mask(char *payload, quint64 size, quint32 maskingKey); - inline Version currentVersion() { return V_LATEST; } } //end namespace QWebSocketProtocol |