From: Kurt Pattyn Date: Sun, 2 Feb 2014 17:38:19 +0000 (+0100) Subject: Update documentation X-Git-Tag: v5.3.0-alpha1~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bae48981dacae436ff4b1a212cc7cfb7e78a3431;p=contrib%2Fqtwebsockets.git Update documentation Change-Id: I35829436b3be543fd133cab58118e62ddfb0e291 Reviewed-by: Kurt Pattyn --- diff --git a/src/websockets/qwebsocketserver.cpp b/src/websockets/qwebsocketserver.cpp index 30ff88d..28a7675 100644 --- a/src/websockets/qwebsocketserver.cpp +++ b/src/websockets/qwebsocketserver.cpp @@ -215,6 +215,7 @@ QT_BEGIN_NAMESPACE /*! Constructs a new QWebSocketServer with the given \a serverName. The \a serverName will be used in the http handshake phase to identify the server. + It can be empty, in which case an empty server name will be sent to the client. The \a secureMode parameter indicates whether the server operates over wss (\l{SecureMode}) or over ws (\l{NonSecureMode}). @@ -262,6 +263,7 @@ void QWebSocketServer::close() /*! Returns a human readable description of the last error that occurred. + If no error occurred, an empty string is returned. \sa serverError() */ @@ -284,9 +286,9 @@ bool QWebSocketServer::hasPendingConnections() const /*! Returns true if the server is currently listening for incoming connections; - otherwise returns false. + otherwise returns false. If listening fails, error() will return the reason. - \sa listen() + \sa listen(), error() */ bool QWebSocketServer::isListening() const { @@ -467,6 +469,7 @@ QWebSocketServer::SslMode QWebSocketServer::secureMode() const /*! Returns an error code for the last error that occurred. + If no error occurred, QWebSocketProtocol::CloseCodeNormal is returned. \sa errorString() */