このページでは

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)を処理するためのインターフェースを提供します。これは、4つの 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 で導入されました。

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