Add a QUrl serverUrl method to QWebSocketServer.
authorMilian Wolff <mail@milianw.de>
Fri, 21 Mar 2014 15:10:09 +0000 (16:10 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 8 Jun 2014 13:40:31 +0000 (15:40 +0200)
commitdb645f9178716a61ba4caeef0dade292460967ef
tree6d23e8b6e88859b631845929a6e825a059b39638
parent6bd414a1f74f5a0ebfc1f4abcc140f7b3b536e1b
Add a QUrl serverUrl method to QWebSocketServer.

It is useful in many places, esp. when constructing clients that
should connect to the server we created.

Note that the returned host address will be LocalHost instead of Any,
to make sure clients can connect to the server even on Windows.
This should hopefully resolve the CI issues.

Change-Id: I3c400ad4d785ea398cf1a1bd113c0833fda9e3bd
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocketserver.cpp
src/websockets/qwebsocketserver.h
tests/auto/qwebsocketserver/tst_qwebsocketserver.cpp