Obsolete Members for QWebSocketServer
QWebSocketServer クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。
パブリック関数
(deprecated) qintptr | nativeDescriptor() const |
(deprecated) bool | setNativeDescriptor(qintptr socketDescriptor) |
メンバー関数のドキュメント
[deprecated] qintptr QWebSocketServer::nativeDescriptor() const
この関数は非推奨です。新しいコードでの使用は強く推奨しません。
サーバーが着信する指示をリッスンするために使用するネイティブソケット記述子を返します。サーバーがリッスンしていない場合は -1 を返します。サーバーが `QNetworkProxy` を使用している場合、返される記述子はネイティブソケット関数では使用できない可能性があります。
setNativeDescriptor()、socketDescriptor()、およびisListening()も参照してください 。
[deprecated] bool QWebSocketServer::setNativeDescriptor(qintptr socketDescriptor)
この関数は非推奨です。新しいコードでの使用は強く推奨しません。
このサーバーがsocketDescriptor への着信接続をリッスンする際に使用するソケット記述子を設定します。
ソケットの設定に成功した場合は true を返し、失敗した場合は false を返します。ソケットはリスニング状態にあるものとみなされます。
nativeDescriptor()、setSocketDescriptor()、および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.