GRPC C++  0.11.0.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions
grpc::ClientStreamingInterface Class Referenceabstract

Common interface for all synchronous client side streaming. More...

#include <sync_stream.h>

Public Member Functions

virtual ~ClientStreamingInterface ()
 
virtual Status Finish ()=0
 Wait until the stream finishes, and return the final status. More...
 

Detailed Description

Common interface for all synchronous client side streaming.

Constructor & Destructor Documentation

virtual grpc::ClientStreamingInterface::~ClientStreamingInterface ( )
inlinevirtual

Member Function Documentation

virtual Status grpc::ClientStreamingInterface::Finish ( )
pure virtual

Wait until the stream finishes, and return the final status.

When the client side declares it has no more message to send, either implicitly or by calling WritesDone(), it needs to make sure there is no more message to be received from the server, either implicitly or by getting a false from a Read().

This function will return either:

  • when all incoming messages have been read and the server has returned status.
  • OR when the server has returned a non-OK status.

Implemented in grpc::ClientReaderWriter< R, W >, grpc::ClientWriter< W >, and grpc::ClientReader< R >.


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