GRPC C++  1.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
grpc::ServerAsyncReaderWriterInterface< W, R > Class Template Referenceabstract

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

#include <async_stream.h>

Public Member Functions

virtual void Finish (const Status &status, void *tag)=0
 
virtual void WriteAndFinish (const W &msg, WriteOptions options, const Status &status, void *tag)=0
 Request the writing of msg and coalesce it with trailing metadata which contains status, using WriteOptions options with identifying tag tag. More...
 
- Public Member Functions inherited from grpc::ServerAsyncStreamingInterface
virtual ~ServerAsyncStreamingInterface ()
 
virtual void SendInitialMetadata (void *tag)=0
 
- Public Member Functions inherited from grpc::AsyncWriterInterface< W >
virtual ~AsyncWriterInterface ()
 
virtual void Write (const W &msg, void *tag)=0
 Request the writing of msg with identifying tag tag. More...
 
virtual void Write (const W &msg, WriteOptions options, void *tag)=0
 Request the writing of msg using WriteOptions options with identifying tag tag. More...
 
void WriteLast (const W &msg, WriteOptions options, void *tag)
 Request the writing of msg and coalesce it with the writing of trailing metadata, using WriteOptions options with identifying tag tag. More...
 
- Public Member Functions inherited from grpc::AsyncReaderInterface< R >
virtual ~AsyncReaderInterface ()
 
virtual void Read (R *msg, void *tag)=0
 Read a message of type R into msg. More...
 

Detailed Description

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

Server-side interface for asynchronous bi-directional streaming.

Member Function Documentation

template<class W , class R >
virtual void grpc::ServerAsyncReaderWriterInterface< W, R >::Finish ( const Status status,
void *  tag 
)
pure virtual
template<class W , class R >
virtual void grpc::ServerAsyncReaderWriterInterface< W, R >::WriteAndFinish ( const W &  msg,
WriteOptions  options,
const Status status,
void *  tag 
)
pure virtual

Request the writing of msg and coalesce it with trailing metadata which contains status, using WriteOptions options with identifying tag tag.

WriteAndFinish is equivalent of performing WriteLast and Finish in a single step.

Parameters
[in]msgThe message to be written.
[in]optionsThe WriteOptions to be used to write this message.
[in]statusThe Status that server returns to client.
[in]tagThe tag identifying the operation.

Implemented in grpc::ServerAsyncReaderWriter< W, R >.


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