Obsolete Members for QWebSocketServer

I seguenti membri della classe ` QWebSocketServer ` sono deprecati. Sono forniti per garantire il funzionamento del codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel nuovo codice.

Funzioni pubbliche

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

Documentazione sulle funzioni membro

[deprecated] qintptr QWebSocketServer::nativeDescriptor() const

Questa funzione è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Restituisce il descrittore di socket nativo utilizzato dal server per ascoltare le istruzioni in arrivo, oppure -1 se il server non è in ascolto. Se il server utilizza QNetworkProxy, il descrittore restituito potrebbe non essere utilizzabile con le funzioni native dei socket.

Vedi anche ` setNativeDescriptor()`, ` socketDescriptor()` e ` isListening()`.

[deprecated] bool QWebSocketServer::setNativeDescriptor(qintptr socketDescriptor)

Questa funzione è deprecata. Si sconsiglia vivamente di utilizzarla nel codice nuovo.

Imposta il descrittore di socket che questo server deve utilizzare durante l'ascolto delle connessioni in entrata su socketDescriptor.

Restituisce true se il socket viene impostato correttamente; in caso contrario restituisce false. Si presume che il socket sia in stato di ascolto.

Vedi anche nativeDescriptor(), setSocketDescriptor() e isListening().

© 2026 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.