GRPC C++
1.13.0-dev
|
Async server-side API for doing client-streaming RPCs, where the incoming message stream from the client has messages of type R, and the single response message sent from the server is type W. More...
#include <async_stream.h>
Public Member Functions | |
ServerAsyncReader (ServerContext *ctx) | |
void | SendInitialMetadata (void *tag) override |
See ServerAsyncStreamingInterface::SendInitialMetadata for semantics. More... | |
void | Read (R *msg, void *tag) override |
Read a message of type R into msg. More... | |
void | Finish (const W &msg, const Status &status, void *tag) override |
See the ServerAsyncReaderInterface.Read method for semantics. More... | |
void | FinishWithError (const Status &status, void *tag) override |
See the ServerAsyncReaderInterface.Read method for semantics. More... | |
![]() | |
virtual | ~ServerAsyncStreamingInterface () |
![]() | |
virtual | ~AsyncReaderInterface () |
Async server-side API for doing client-streaming RPCs, where the incoming message stream from the client has messages of type R, and the single response message sent from the server is type W.
|
inlineexplicit |
|
inlineoverridevirtual |
See the ServerAsyncReaderInterface.Read method for semantics.
Side effect:
Note: msg is not sent if status has a non-OK code.
Implements grpc::ServerAsyncReaderInterface< W, R >.
|
inlineoverridevirtual |
See the ServerAsyncReaderInterface.Read method for semantics.
Side effect:
Implements grpc::ServerAsyncReaderInterface< W, R >.
|
inlineoverridevirtual |
Read a message of type R into msg.
Completion will be notified by tag on the associated completion queue. This is thread-safe with respect to Write or WritesDone methods. It should not be called concurrently with other streaming APIs on the same stream. It is not meaningful to call it concurrently with another AsyncReaderInterface::Read on the same stream since reads on the same stream are delivered in order.
[out] | msg | Where to eventually store the read message. |
[in] | tag | The tag identifying the operation. |
Side effect: note that this method attempt to receive initial metadata for a stream if it hasn't yet been received.
Implements grpc::internal::AsyncReaderInterface< R >.
|
inlineoverridevirtual |
See ServerAsyncStreamingInterface::SendInitialMetadata for semantics.
Implicit input parameter:
Implements grpc::internal::ServerAsyncStreamingInterface.