QGrpcClientStream Class
QGrpcClientStreamクラスは、クライアント・ストリーミングRPCを処理する際のアクセスを提供します。詳細...
ヘッダ | #include <QGrpcClientStream> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
以来: | Qt 6.7 |
継承: | QGrpcOperation |
パブリック関数
virtual | ~QGrpcClientStream() override |
void | writeMessage(const QProtobufMessage &message) |
(since 6.8) void | writesDone() |
詳細説明
QGrpcClientStreamクラスは、クライアント・ストリーミング・リモート・プロシージャ・コール(RPC)を処理するためのインターフェイスを提供します。 gRPC™サービス・メソッドの1つです。
高レベルの概要については、Qt GRPC クライアント・ガイドを参照してください。
注: Client
インターフェースが返す固有の RPC ハンドラを管理する責任はユーザーにあり、少なくともfinished シグナルが発せられるまではその存在を確保すること。このシグナルを受け取った後、ハンドラは安全に再割り当てまたは破棄することができる。
メンバ関数ドキュメント
[override virtual noexcept]
QGrpcClientStream::~QGrpcClientStream()
QGrpcClientStream を破壊する。
void QGrpcClientStream::writeMessage(const QProtobufMessage &message)
message をシリアライズしてサーバーに送信する。
[since 6.8]
void QGrpcClientStream::writesDone()
クライアント側からのストリームを終了する(ハーフクローズ)。この呼び出しの後も、サーバーは応答を送信することができます。
この関数はQt 6.8で導入されました。
© 2025 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.