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

シグナル

詳細説明

QGrpcServerStream クラスは、サーバ・ストリーミング・リモート・プロシージャ・コール (RPC) を処理するためのインタフェースを提供します。 gRPCサービス・メソッドの1つです。

高レベルの概要については、Qt GRPC クライアント・ガイドを参照してください。

注: Client インターフェースが返す固有の RPC ハンドラを管理する責任はユーザーにあり、少なくともfinished シグナルが発せられるまではその存在を確保すること。このシグナルを受け取った後、ハンドラは安全に再割り当てまたは破棄することができる。

メンバ関数ドキュメント

[override virtual noexcept] QGrpcServerStream::~QGrpcServerStream()

QGrpcServerStream を破壊する。

[signal] void QGrpcServerStream::messageReceived()

このシグナルは、ストリーミング RPC がサーバから新しいメッセージを受信したときに発行されます。read() メソッドを使用して、受信したメッセージをデシリアライズできます。

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