#include <sync_stream.h>
Public Member Functions | |
bool | NextMessageSize (uint32_t *sz) override |
bool | Read (R *msg) override |
void | SendInitialMetadata () override |
bool | Write (const W &msg, grpc::WriteOptions options) override |
![]() | |
virtual | ~ServerStreamingInterface () |
![]() | |
bool | Write (const W &msg) |
void | WriteLast (const W &msg, grpc::WriteOptions options) |
virtual | ~WriterInterface () |
![]() | |
virtual | ~ReaderInterface () |
Private Member Functions | |
ServerReaderWriter (grpc::internal::Call *call, grpc::ServerContext *ctx) | |
Private Attributes | |
internal::ServerReaderWriterBody< W, R > | body_ |
Friends | |
class | internal::TemplatedBidiStreamingHandler< ServerReaderWriter< W, R >, false > |
Synchronous (blocking) server-side API for a bidirectional streaming call, where the incoming message stream coming from the client has messages of type R, and the outgoing message streaming coming from the server has messages of type W.
Definition at line 786 of file grpcpp/impl/codegen/sync_stream.h.
|
inlineprivate |
Definition at line 814 of file grpcpp/impl/codegen/sync_stream.h.
|
inlineoverridevirtual |
Get an upper bound on the next message size available for reading on this stream.
Implements grpc::internal::ReaderInterface< R >.
Definition at line 793 of file grpcpp/impl/codegen/sync_stream.h.
|
inlineoverridevirtual |
Block to read a message and parse to msg. Returns true on success. This is thread-safe with respect to Write or \WritesDone methods on the same stream. It should not be called concurrently with another Read on the same stream as the order of delivery will not be defined.
[out] | msg | The read message. |
Implements grpc::internal::ReaderInterface< R >.
Definition at line 797 of file grpcpp/impl/codegen/sync_stream.h.
|
inlineoverridevirtual |
See the ServerStreamingInterface.SendInitialMetadata method for semantics. Note that initial metadata will be affected by the ServerContext associated with this call.
Implements grpc::internal::ServerStreamingInterface.
Definition at line 791 of file grpcpp/impl/codegen/sync_stream.h.
|
inlineoverridevirtual |
Block to write msg to the stream with WriteOptions options. This is thread-safe with respect to ReaderInterface::Read
msg | The message to be written to the stream. |
options | The WriteOptions affecting the write operation. |
Implements grpc::internal::WriterInterface< W >.
Definition at line 805 of file grpcpp/impl/codegen/sync_stream.h.
|
friend |
Definition at line 813 of file grpcpp/impl/codegen/sync_stream.h.
|
private |
Definition at line 810 of file grpcpp/impl/codegen/sync_stream.h.