GRPC C++  1.26.0
Public Member Functions
grpc_impl::internal::ClientStreamingInterface Class Referenceabstract

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

#include <sync_stream_impl.h>

Public Member Functions

virtual ~ClientStreamingInterface ()
 
virtual ::grpc::Status Finish ()=0
 Block waiting until the stream finishes and a final status of the call is available. More...
 

Detailed Description

Common interface for all synchronous client side streaming.

Constructor & Destructor Documentation

◆ ~ClientStreamingInterface()

virtual grpc_impl::internal::ClientStreamingInterface::~ClientStreamingInterface ( )
inlinevirtual

Member Function Documentation

◆ Finish()

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

Block waiting until the stream finishes and a final status of the call is available.

It is appropriate to call this method exactly once when both:

This function will return either:

  • when all incoming messages have been read and the server has returned status.
  • when the server has returned a non-OK status.
  • OR when the call failed for some reason and the library generated a status.

Return values:

  • Status contains the status code, message and details for the call
  • the ClientContext associated with this call is updated with possible trailing metadata sent from the server.

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


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