GRPC C++  0.11.0.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Friends
grpc::ServerAsyncReaderWriter< R, W > Class Template Reference

Server-side interface for asynchronous bi-directional streaming. More...

#include <server_context.h>

Public Member Functions

 ServerAsyncReaderWriter (ServerContext *ctx)
 
void SendInitialMetadata (void *tag) GRPC_OVERRIDE
 
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 Finish (const Status &status, void *tag)
 
- Public Member Functions inherited from grpc::ServerAsyncStreamingInterface
virtual ~ServerAsyncStreamingInterface ()
 
- Public Member Functions inherited from grpc::AsyncWriterInterface< W >
virtual ~AsyncWriterInterface ()
 
- Public Member Functions inherited from grpc::AsyncReaderInterface< R >
virtual ~AsyncReaderInterface ()
 

Friends

class ::grpc::Server
 

Detailed Description

template<class R, class W>
class grpc::ServerAsyncReaderWriter< R, W >

Server-side interface for asynchronous bi-directional streaming.

Constructor & Destructor Documentation

template<class R , class W >
grpc::ServerAsyncReaderWriter< R, W >::ServerAsyncReaderWriter ( ServerContext ctx)
inlineexplicit

Member Function Documentation

template<class R , class W >
void grpc::ServerAsyncReaderWriter< R, W >::Finish ( const Status status,
void *  tag 
)
inline
template<class R , class W >
void grpc::ServerAsyncReaderWriter< R, W >::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 R , class W >
void grpc::ServerAsyncReaderWriter< R, W >::SendInitialMetadata ( void *  tag)
inlinevirtual
template<class R , class W >
void grpc::ServerAsyncReaderWriter< R, W >::Write ( const W &  msg,
void *  tag 
)
inlinevirtual

Request the writing of msg with identifying tag tag.

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

Implements grpc::AsyncWriterInterface< W >.

Friends And Related Function Documentation

template<class R , class W >
friend class ::grpc::Server
friend

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