Obsolete Members for QWebSocketServer
The following members of class QWebSocketServer are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) | dumpObjectInfo() |
(obsolete) | dumpObjectTree() |
(obsolete) bool | setSocketDescriptor(int socketDescriptor) |
(obsolete) int | socketDescriptor() const |
Member Function Documentation
bool QWebSocketServer::setSocketDescriptor(int socketDescriptor)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Sets the socket descriptor this server should use when listening for incoming connections to socketDescriptor.
Returns true if the socket is set successfully; otherwise returns false. The socket is assumed to be in listening state.
This function was introduced in Qt 5.3.
See also socketDescriptor(), setSocketDescriptor(), nativeDescriptor(), and isListening().
int QWebSocketServer::socketDescriptor() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns the native socket descriptor the server uses to listen for incoming instructions, or -1 if the server is not listening. If the server is using QNetworkProxy, the returned descriptor may not be usable with native socket functions.
This function was introduced in Qt 5.3.
See also nativeDescriptor(), setNativeDescriptor(), setSocketDescriptor(), and isListening().
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.