summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket_p.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-11-17 15:30:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-17 15:31:11 +0100
commitb68dcd71d3b73a8d6be57a0001af2d79bce98533 (patch)
treedf11355e2a9de126d8123e4cfb9888eb2f0dc076 /src/websockets/qwebsocket_p.h
parentd5cc962781407e8a8f6560d5579128ac24c96231 (diff)
downloadqtwebsockets-b68dcd71d3b73a8d6be57a0001af2d79bce98533.tar.gz
Add close code and close reason getter functions
Change-Id: I4eeab1521054e4f4921d25c6a990eeb7486443cb Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket_p.h')
-rw-r--r--src/websockets/qwebsocket_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h
index 80c5e4f..bd41d8b 100644
--- a/src/websockets/qwebsocket_p.h
+++ b/src/websockets/qwebsocket_p.h
@@ -137,6 +137,8 @@ public:
QString origin() const;
QString protocol() const;
QString extension() const;
+ QWebSocketProtocol::CloseCode closeCode() const;
+ QString closeReason() const;
qint64 write(const char *message); //send data as text
qint64 write(const char *message, qint64 maxSize); //send data as text
@@ -223,6 +225,8 @@ private:
bool m_isClosingHandshakeSent;
bool m_isClosingHandshakeReceived;
+ QWebSocketProtocol::CloseCode m_closeCode;
+ QString m_closeReason;
QTime m_pingTimer;