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

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

#include <completion_queue_impl.h>

Public Member Functions

 TemplatedBidiStreamingHandler (std::function<::grpc::Status(::grpc_impl::ServerContext *, Streamer *)> func)
 
void RunHandler (const HandlerParameter &param) final
 
- Public Member Functions inherited from grpc::internal::MethodHandler
virtual ~MethodHandler ()
 
virtual void * Deserialize (grpc_call *, grpc_byte_buffer *req, Status *, void **)
 

Detailed Description

template<class Streamer, bool WriteNeeded>
class grpc_impl::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_impl::internal::TemplatedBidiStreamingHandler< Streamer, WriteNeeded >::TemplatedBidiStreamingHandler ( std::function<::grpc::Status(::grpc_impl::ServerContext *, Streamer *)>  func)
inline

Member Function Documentation

◆ RunHandler()

template<class Streamer, bool WriteNeeded>
void grpc_impl::internal::TemplatedBidiStreamingHandler< Streamer, WriteNeeded >::RunHandler ( const HandlerParameter param)
inlinefinalvirtual

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