summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket_p.h
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-06-07 12:08:00 +0200
committerLiang Qi <liang.qi@qt.io>2017-06-07 13:54:49 +0200
commit26e56e18eb234df4a782737cd3c8d8d11daead2c (patch)
treeab02a7bcbec017b2d5f9e32e6123dd493c60ad50 /src/websockets/qwebsocket_p.h
parente5133f4f0bb7c01d7bd7fc499d8c148c03a5b500 (diff)
parent8bac2e667f56efc552228ed61c4ccbc3e9efa721 (diff)
downloadqtwebsockets-26e56e18eb234df4a782737cd3c8d8d11daead2c.tar.gz
Merge remote-tracking branch 'origin/5.9' into dev
Conflicts: .qmake.conf Change-Id: Ib89576c203259364795a3b1caf0717fb28126629
Diffstat (limited to 'src/websockets/qwebsocket_p.h')
-rw-r--r--src/websockets/qwebsocket_p.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h
index 4863de7..4d33788 100644
--- a/src/websockets/qwebsocket_p.h
+++ b/src/websockets/qwebsocket_p.h
@@ -179,7 +179,7 @@ private:
void processHandshake(QTcpSocket *pSocket);
void processStateChanged(QAbstractSocket::SocketState socketState);
- qint64 doWriteFrames(const QByteArray &data, bool isBinary) Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT qint64 doWriteFrames(const QByteArray &data, bool isBinary);
void makeConnections(const QTcpSocket *pTcpSocket);
void releaseConnections(const QTcpSocket *pTcpSocket);
@@ -195,15 +195,16 @@ private:
QByteArray key,
const QList<QPair<QString, QString> > &headers);
- static QWebSocket *upgradeFrom(QTcpSocket *tcpSocket,
- const QWebSocketHandshakeRequest &request,
- const QWebSocketHandshakeResponse &response,
- QObject *parent = Q_NULLPTR) Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT static QWebSocket *
+ upgradeFrom(QTcpSocket *tcpSocket,
+ const QWebSocketHandshakeRequest &request,
+ const QWebSocketHandshakeResponse &response,
+ QObject *parent = Q_NULLPTR);
quint32 generateMaskingKey() const;
QByteArray generateKey() const;
- qint64 writeFrames(const QList<QByteArray> &frames) Q_REQUIRED_RESULT;
- qint64 writeFrame(const QByteArray &frame) Q_REQUIRED_RESULT;
+ Q_REQUIRED_RESULT qint64 writeFrames(const QList<QByteArray> &frames);
+ Q_REQUIRED_RESULT qint64 writeFrame(const QByteArray &frame);
QTcpSocket *m_pSocket;
QString m_errorString;