diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-01-11 19:08:28 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-11 19:11:17 +0100 |
commit | b019b9ccea08bcc7b65fd9f1a497546924ef592d (patch) | |
tree | 58b2bb768b956ba931d5e60a5e5f6febdd366919 /src/websockets/qwebsocket_p.h | |
parent | a3f715c477a86b164c7db7a1740ac2ac3b21dbc7 (diff) | |
download | qtwebsockets-b019b9ccea08bcc7b65fd9f1a497546924ef592d.tar.gz |
Remove waitXXX() methods from websockets
The QWebSocketServer::waitForNewConnection() was just calling
QTcpServer::waitForNewConnection(), which was not correct because
a connection is only complete when the handshake succeeds.
Waiting for the handshake to complete would need a separate thread
for the handshake handling code, which would complicate the code a lot.
It was decided to leave out all waitXXX() methods from the module,
as it is easier to add this functionality later, then to remove it.
Change-Id: I778bae45b67f81e151ad2362f772c75e9f537ff0
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket_p.h')
-rw-r--r-- | src/websockets/qwebsocket_p.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h index d9fc612..544035f 100644 --- a/src/websockets/qwebsocket_p.h +++ b/src/websockets/qwebsocket_p.h @@ -130,9 +130,6 @@ public: QVariant socketOption(QAbstractSocket::SocketOption option); QAbstractSocket::SocketState state() const; - bool waitForConnected(int msecs); - bool waitForDisconnected(int msecs); - QWebSocketProtocol::Version version() const; QString resourceName() const; QUrl requestUrl() const; |