GRPC C++
1.66.0
|
#include <async_stream.h>
Public Member Functions | |
virtual void | Finish (const grpc::Status &status, void *tag)=0 |
Indicate that the stream is to be finished with a certain status code. More... | |
virtual void | WriteAndFinish (const W &msg, grpc::WriteOptions options, const grpc::Status &status, void *tag)=0 |
Request the writing of msg and coalesce it with trailing metadata which contains status, using WriteOptions options with identifying tag tag. More... | |
Public Member Functions inherited from grpc::internal::ServerAsyncStreamingInterface | |
virtual | ~ServerAsyncStreamingInterface () |
virtual void | SendInitialMetadata (void *tag)=0 |
Request notification of the sending of initial metadata to the client. More... | |
Public Member Functions inherited from grpc::internal::AsyncWriterInterface< W > | |
virtual | ~AsyncWriterInterface () |
virtual void | Write (const W &msg, void *tag)=0 |
Request the writing of msg with identifying tag tag. More... | |
virtual void | Write (const W &msg, grpc::WriteOptions options, void *tag)=0 |
Request the writing of msg using WriteOptions options with identifying tag tag. More... | |
void | WriteLast (const W &msg, grpc::WriteOptions options, void *tag) |
Request the writing of msg and coalesce it with the writing of trailing metadata, using WriteOptions options with identifying tag tag. More... | |
|
pure virtual |
Indicate that the stream is to be finished with a certain status code.
Request notification for when the server has sent the appropriate signals to the client to end the call. Should not be used concurrently with other operations.
It is appropriate to call this method when either:
This operation will end when the server has finished sending out initial metadata (if not sent already), response message, and status, or if some failure occurred when trying to do so.
gRPC doesn't take ownership or a reference to status, so it is safe to to deallocate once Finish returns.
[in] | tag | Tag identifying this request. |
[in] | status | To be sent to the client as the result of this call. |
|
pure virtual |
Request the writing of msg and coalesce it with trailing metadata which contains status, using WriteOptions options with identifying tag tag.
WriteAndFinish is equivalent of performing WriteLast and Finish in a single step.
gRPC doesn't take ownership or a reference to msg and status, so it is safe to deallocate once WriteAndFinish returns.
[in] | msg | The message to be written. |
[in] | options | The WriteOptions to be used to write this message. |
[in] | status | The Status that server returns to client. |
[in] | tag | The tag identifying the operation. |