Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Obsolete Members for QWebSocketServer

The following members of class QWebSocketServer are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(deprecated) qintptr nativeDescriptor() const
(deprecated) bool setNativeDescriptor(qintptr socketDescriptor)

Member Function Documentation

[since 5.12] qintptr QWebSocketServer::nativeDescriptor() const

This function is deprecated. 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.12.

See also setNativeDescriptor(), socketDescriptor(), and isListening().

[since 5.12] bool QWebSocketServer::setNativeDescriptor(qintptr socketDescriptor)

This function is deprecated. 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.12.

See also nativeDescriptor(), setSocketDescriptor(), and isListening().

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded