QGrpcServerStream Class
QGrpcServerStream クラスは、サーバーストリーミング RPC の処理に必要な機能を提供します。詳細...
| ヘッダー: | #include <QGrpcServerStream> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| 以下より: | Qt 6.7 |
| 継承元: | QGrpcOperation |
パブリック関数
| virtual | ~QGrpcServerStream() override |
シグナル
| void | messageReceived() |
詳細な説明
QGrpcServerStream クラスは、サーバーストリーミング型リモートプロシージャコール(RPC)を処理するためのインターフェースを提供します。これは、4つの gRPC™サービス・メソッドの 1 つです。
概要については、『Qt GRPC クライアントガイド』を参照してください。
注: Client インターフェースによって返される一意の RPC ハンドラを管理し、少なくともfinished シグナルが発行されるまではその存在を確保するのは、ユーザーの 責任です。このシグナルを受信した後、ハンドラは安全に再割り当てまたは破棄することができます。
メンバ関数のドキュメント
[override virtual noexcept] QGrpcServerStream::~QGrpcServerStream()
QGrpcServerStream を削除します。
[signal] void QGrpcServerStream::messageReceived()
このシグナルは、ストリーミング RPC がサーバーから新しいメッセージを受信した際に発生します。その後、read() メソッドを使用して、受信したメッセージのデシリアライズを行うことができます。
© 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.