template <class W, class R>

class ClientReaderWriter

Defined at line 452 of file ../../third_party/grpc/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 460 of file ../../third_party/grpc/src/include/grpcpp/support/sync_stream.h

bool NextMessageSize (uint32_t * sz)

Defined at line 469 of file ../../third_party/grpc/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 479 of file ../../third_party/grpc/src/include/grpcpp/support/sync_stream.h

bool Write (const W & msg, grpc::WriteOptions options)

Defined at line 497 of file ../../third_party/grpc/src/include/grpcpp/support/sync_stream.h

bool WritesDone ()

Defined at line 520 of file ../../third_party/grpc/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 532 of file ../../third_party/grpc/src/include/grpcpp/support/sync_stream.h