GRPC C++  0.13.1-pre1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
grpc::ClientAsyncReaderWriter< W, R > Class Template Reference

#include <async_stream.h>

Public Member Functions

 ClientAsyncReaderWriter (ChannelInterface *channel, CompletionQueue *cq, const RpcMethod &method, ClientContext *context, void *tag)
 
void ReadInitialMetadata (void *tag) GRPC_OVERRIDE
 Request notification of the reading of the initial metadata. More...
 
void Read (R *msg, void *tag) GRPC_OVERRIDE
 Read a message of type R into msg. More...
 
void Write (const W &msg, void *tag) GRPC_OVERRIDE
 Request the writing of msg with identifying tag tag. More...
 
void WritesDone (void *tag) GRPC_OVERRIDE
 Signal the client is done with the writes. More...
 
void Finish (Status *status, void *tag) GRPC_OVERRIDE
 Request notification completion. More...
 
- Public Member Functions inherited from grpc::ClientAsyncStreamingInterface
virtual ~ClientAsyncStreamingInterface ()
 
- Public Member Functions inherited from grpc::AsyncWriterInterface< W >
virtual ~AsyncWriterInterface ()
 
- Public Member Functions inherited from grpc::AsyncReaderInterface< R >
virtual ~AsyncReaderInterface ()
 

Constructor & Destructor Documentation

template<class W , class R >
grpc::ClientAsyncReaderWriter< W, R >::ClientAsyncReaderWriter ( ChannelInterface channel,
CompletionQueue cq,
const RpcMethod method,
ClientContext context,
void *  tag 
)
inline

Member Function Documentation

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::Finish ( Status status,
void *  tag 
)
inlinevirtual

Request notification completion.

Parameters
[out]statusTo be updated with the operation status.
[in]tagTag identifying this request.

Implements grpc::ClientAsyncStreamingInterface.

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::Read ( R *  msg,
void *  tag 
)
inlinevirtual

Read a message of type R into msg.

Completion will be notified by tag on the associated completion queue.

Parameters
[out]msgWhere to eventually store the read message.
[in]tagThe tag identifying the operation.

Implements grpc::AsyncReaderInterface< R >.

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::ReadInitialMetadata ( void *  tag)
inlinevirtual

Request notification of the reading of the initial metadata.

Completion will be notified by tag on the associated completion queue.

Parameters
[in]tagTag identifying this request.

Implements grpc::ClientAsyncStreamingInterface.

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::Write ( const W &  msg,
void *  tag 
)
inlinevirtual

Request the writing of msg with identifying tag tag.

Only one write may be outstanding at any given time. This means that after calling Write, one must wait to receive tag from the completion queue BEFORE calling Write again.

Parameters
[in]msgThe message to be written.
[in]tagThe tag identifying the operation.

Implements grpc::AsyncWriterInterface< W >.

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::WritesDone ( void *  tag)
inlinevirtual

Signal the client is done with the writes.

Parameters
[in]tagThe tag identifying the operation.

Implements grpc::ClientAsyncReaderWriterInterface< W, R >.


The documentation for this class was generated from the following file: