template <class W, class R>
class ClientReaderWriter
Defined at line 451 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
Synchronous (blocking) client-side API for bi-directional streaming RPCs,
where the outgoing message stream coming from the client has messages of
type
and the incoming messages stream coming from the server has
messages of type
Public Methods
void WaitForInitialMetadata ()
Block waiting to read initial metadata from the server.
This call is optional, but if it is used, it cannot be used concurrently
with or after the
method.
Once complete, the initial metadata read from the server will be
accessible through the
used to construct this object.
Defined at line 459 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool NextMessageSize (uint32_t * sz)
Defined at line 468 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool Read (R * msg)
See the
method for semantics.
Side effect:
Also receives initial metadata if not already received (updates the
associated with this call in that case).
Defined at line 478 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool Write (const W & msg, grpc::WriteOptions options)
Defined at line 496 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
bool WritesDone ()
Defined at line 519 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h
grpc::Status Finish ()
See the ClientStreamingInterface.Finish method for semantics.
Side effect:
- the
associated with this call is updated with
possible trailing metadata sent from the server.
Defined at line 531 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h