QGrpcClientStream Class

The QGrpcClientStream class provides the interface to access the client-side gRPC stream functionality from gRPC client side. More...

Header: #include <QGrpcClientStream>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.7
Inherits: QGrpcOperation
Status: Technical Preview

Public Functions

virtual ~QGrpcClientStream() override
(since 6.8) void sendMessage(const QProtobufMessage *message)
void sendMessage(const T &message)
(since 6.8) void writesDone()

Detailed Description

Member Function Documentation

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

Destroys the QGrpcClientStream object.

[since 6.8] void QGrpcClientStream::sendMessage(const QProtobufMessage *message)

Serializes message and sends it to the server.

This function was introduced in Qt 6.8.

template <typename T> void QGrpcClientStream::sendMessage(const T &message)

Serializes message and sends it to the server.

[since 6.8] void QGrpcClientStream::writesDone()

Ends the stream from the client side (half-closing). The server is still allowed to send responses after this call.

This function was introduced in Qt 6.8.

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