#include <async_stream.h>
Public Member Functions | |
void | Finish (const W &msg, const grpc::Status &status, void *tag) override |
void | FinishWithError (const grpc::Status &status, void *tag) override |
void | Read (R *msg, void *tag) override |
void | SendInitialMetadata (void *tag) override |
ServerAsyncReader (grpc::ServerContext *ctx) | |
![]() | |
virtual | ~ServerAsyncStreamingInterface () |
![]() | |
virtual | ~AsyncReaderInterface () |
Private Member Functions | |
void | BindCall (grpc::internal::Call *call) override |
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.
Definition at line 698 of file grpcpp/impl/codegen/async_stream.h.
|
inlineexplicit |
Definition at line 700 of file grpcpp/impl/codegen/async_stream.h.
|
inlineoverrideprivatevirtual |
Implements grpc::internal::ServerAsyncStreamingInterface.
Definition at line 783 of file grpcpp/impl/codegen/async_stream.h.
|
inlineoverridevirtual |
See the ServerAsyncReaderInterface.Read method for semantics
Side effect:
Note: msg is not sent if status has a non-OK code.
gRPC doesn't take ownership or a reference to msg and status, so it is safe to deallocate once Finish returns.
Implements grpc::ServerAsyncReaderInterface< W, R >.
Definition at line 738 of file grpcpp/impl/codegen/async_stream.h.
|
inlineoverridevirtual |
See the ServerAsyncReaderInterface.Read method for semantics
Side effect:
gRPC doesn't take ownership or a reference to status, so it is safe to to deallocate once FinishWithError returns.
Implements grpc::ServerAsyncReaderInterface< W, R >.
Definition at line 767 of file grpcpp/impl/codegen/async_stream.h.
|
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 >.
Definition at line 721 of file grpcpp/impl/codegen/async_stream.h.
|
inlineoverridevirtual |
See ServerAsyncStreamingInterface::SendInitialMetadata for semantics.
Implicit input parameter:
Implements grpc::internal::ServerAsyncStreamingInterface.
Definition at line 708 of file grpcpp/impl/codegen/async_stream.h.
|
private |
Definition at line 785 of file grpcpp/impl/codegen/async_stream.h.
|
private |
Definition at line 786 of file grpcpp/impl/codegen/async_stream.h.
|
private |
Definition at line 793 of file grpcpp/impl/codegen/async_stream.h.
|
private |
Definition at line 788 of file grpcpp/impl/codegen/async_stream.h.
|
private |
Definition at line 789 of file grpcpp/impl/codegen/async_stream.h.