QGrpcBidiStream Class
The QGrpcBidiStream class provides the interface to access the bidirectional gRPC stream functionality from gRPC client side. More...
| Header: | #include <QGrpcBidiStream> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc)target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| Since: | Qt 6.7 |
| Inherits: | QGrpcOperation |
Public Functions
| virtual | ~QGrpcBidiStream() override |
| void | writeMessage(const QProtobufMessage &message) |
(since 6.8) void | writesDone() |
Signals
| void | messageReceived() |
Detailed Description
Member Function Documentation
[override virtual noexcept] QGrpcBidiStream::~QGrpcBidiStream()
Destroys the QGrpcBidiStream object.
[signal] void QGrpcBidiStream::messageReceived()
The signal is emitted when the stream receives an updated value from server.
void QGrpcBidiStream::writeMessage(const QProtobufMessage &message)
Serializes message and sends it to the server.
[since 6.8] void QGrpcBidiStream::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.