GRPC C++  1.46.2
Public Member Functions
grpc::internal::TemplatedBidiStreamingHandler< Streamer, WriteNeeded > Class Template Reference

A wrapper class of an application provided bidi-streaming handler. More...

#include <completion_queue.h>

Public Member Functions

 TemplatedBidiStreamingHandler (std::function< grpc::Status(grpc::ServerContext *, Streamer *)> func)
 
void RunHandler (const HandlerParameter &param) final
 

Detailed Description

template<class Streamer, bool WriteNeeded>
class grpc::internal::TemplatedBidiStreamingHandler< Streamer, WriteNeeded >

A wrapper class of an application provided bidi-streaming handler.

This also applies to server-streamed implementation of a unary method with the additional requirement that such methods must have done a write for status to be ok Since this is used by more than 1 class, the service is not passed in. Instead, it is expected to be an implicitly-captured argument of func (through bind or something along those lines)

Constructor & Destructor Documentation

◆ TemplatedBidiStreamingHandler()

template<class Streamer , bool WriteNeeded>
grpc::internal::TemplatedBidiStreamingHandler< Streamer, WriteNeeded >::TemplatedBidiStreamingHandler ( std::function< grpc::Status(grpc::ServerContext *, Streamer *)>  func)
inlineexplicit

Member Function Documentation

◆ RunHandler()

template<class Streamer , bool WriteNeeded>
void grpc::internal::TemplatedBidiStreamingHandler< Streamer, WriteNeeded >::RunHandler ( const HandlerParameter &  param)
inlinefinal

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