GRPC C++
1.13.0-dev
|
Async server-side API for doing server streaming RPCs, where the outgoing message stream from the server has messages of type W. More...
#include <async_stream.h>
Public Member Functions | |
ServerAsyncWriter (ServerContext *ctx) | |
void | SendInitialMetadata (void *tag) override |
See ServerAsyncStreamingInterface::SendInitialMetadata for semantics. More... | |
void | Write (const W &msg, void *tag) override |
Request the writing of msg with identifying tag tag. More... | |
void | Write (const W &msg, WriteOptions options, void *tag) override |
Request the writing of msg using WriteOptions options with identifying tag tag. More... | |
void | WriteAndFinish (const W &msg, WriteOptions options, const Status &status, void *tag) override |
See the ServerAsyncWriterInterface.WriteAndFinish method for semantics. More... | |
void | Finish (const Status &status, void *tag) override |
See the ServerAsyncWriterInterface.Finish method for semantics. More... | |
![]() | |
virtual | ~ServerAsyncStreamingInterface () |
![]() | |
virtual | ~AsyncWriterInterface () |
void | WriteLast (const W &msg, 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... | |
Async server-side API for doing server streaming RPCs, where the outgoing message stream from the server has messages of type W.
|
inlineexplicit |
|
inlineoverridevirtual |
See the ServerAsyncWriterInterface.Finish method for semantics.
Implicit input parameter:
Note: there are no restrictions are the code of status,it may be non-OK
Implements grpc::ServerAsyncWriterInterface< W >.
|
inlineoverridevirtual |
See ServerAsyncStreamingInterface::SendInitialMetadata for semantics.
Implicit input parameter:
[in] | tag | Tag identifying this request. |
Implements grpc::internal::ServerAsyncStreamingInterface.
|
inlineoverridevirtual |
Request the writing of msg with identifying tag tag.
Only one write may be outstanding at any given time. This means that after calling Write, one must wait to receive tag from the completion queue BEFORE calling Write again. This is thread-safe with respect to AsyncReaderInterface::Read
[in] | msg | The message to be written. |
[in] | tag | The tag identifying the operation. |
Implements grpc::internal::AsyncWriterInterface< W >.
|
inlineoverridevirtual |
Request the writing of msg using WriteOptions options with identifying tag tag.
Only one write may be outstanding at any given time. This means that after calling Write, one must wait to receive tag from the completion queue BEFORE calling Write again. WriteOptions options is used to set the write options of this message. This is thread-safe with respect to AsyncReaderInterface::Read
[in] | msg | The message to be written. |
[in] | options | The WriteOptions to be used to write this message. |
[in] | tag | The tag identifying the operation. |
Implements grpc::internal::AsyncWriterInterface< W >.
|
inlineoverridevirtual |
See the ServerAsyncWriterInterface.WriteAndFinish method for semantics.
Implicit input parameter:
Note: status must have an OK code.
Implements grpc::ServerAsyncWriterInterface< W >.