GRPC C++  1.30.0
Data Structures | Public Member Functions | Protected Member Functions | Friends
grpc::Service Class Reference

Desriptor of an RPC service and its various RPC methods. More...

#include <service_type.h>

Data Structures

class  experimental_type
 

Public Member Functions

 Service ()
 
virtual ~Service ()
 
bool has_async_methods () const
 
bool has_synchronous_methods () const
 
bool has_callback_methods () const
 
bool has_generic_methods () const
 

Protected Member Functions

experimental_type experimental ()
 
template<class Message >
void RequestAsyncUnary (int index, ::grpc_impl::ServerContext *context, Message *request, internal::ServerAsyncStreamingInterface *stream, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag)
 
void RequestAsyncClientStreaming (int index, ::grpc_impl::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag)
 
template<class Message >
void RequestAsyncServerStreaming (int index, ::grpc_impl::ServerContext *context, Message *request, internal::ServerAsyncStreamingInterface *stream, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag)
 
void RequestAsyncBidiStreaming (int index, ::grpc_impl::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag)
 
void AddMethod (internal::RpcServiceMethod *method)
 
void MarkMethodAsync (int index)
 
void MarkMethodRaw (int index)
 
void MarkMethodGeneric (int index)
 
void MarkMethodStreamed (int index, internal::MethodHandler *streamed_method)
 

Friends

class grpc_impl::Server
 
class ServerInterface
 

Detailed Description

Desriptor of an RPC service and its various RPC methods.

Constructor & Destructor Documentation

◆ Service()

grpc::Service::Service ( )
inline

◆ ~Service()

virtual grpc::Service::~Service ( )
inlinevirtual

Member Function Documentation

◆ AddMethod()

void grpc::Service::AddMethod ( internal::RpcServiceMethod method)
inlineprotected

◆ experimental()

experimental_type grpc::Service::experimental ( )
inlineprotected

◆ has_async_methods()

bool grpc::Service::has_async_methods ( ) const
inline

◆ has_callback_methods()

bool grpc::Service::has_callback_methods ( ) const
inline

◆ has_generic_methods()

bool grpc::Service::has_generic_methods ( ) const
inline

◆ has_synchronous_methods()

bool grpc::Service::has_synchronous_methods ( ) const
inline

◆ MarkMethodAsync()

void grpc::Service::MarkMethodAsync ( int  index)
inlineprotected

◆ MarkMethodGeneric()

void grpc::Service::MarkMethodGeneric ( int  index)
inlineprotected

◆ MarkMethodRaw()

void grpc::Service::MarkMethodRaw ( int  index)
inlineprotected

◆ MarkMethodStreamed()

void grpc::Service::MarkMethodStreamed ( int  index,
internal::MethodHandler streamed_method 
)
inlineprotected

◆ RequestAsyncBidiStreaming()

void grpc::Service::RequestAsyncBidiStreaming ( int  index,
::grpc_impl::ServerContext context,
internal::ServerAsyncStreamingInterface stream,
::grpc_impl::CompletionQueue call_cq,
::grpc_impl::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

◆ RequestAsyncClientStreaming()

void grpc::Service::RequestAsyncClientStreaming ( int  index,
::grpc_impl::ServerContext context,
internal::ServerAsyncStreamingInterface stream,
::grpc_impl::CompletionQueue call_cq,
::grpc_impl::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

◆ RequestAsyncServerStreaming()

template<class Message >
void grpc::Service::RequestAsyncServerStreaming ( int  index,
::grpc_impl::ServerContext context,
Message *  request,
internal::ServerAsyncStreamingInterface stream,
::grpc_impl::CompletionQueue call_cq,
::grpc_impl::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

◆ RequestAsyncUnary()

template<class Message >
void grpc::Service::RequestAsyncUnary ( int  index,
::grpc_impl::ServerContext context,
Message *  request,
internal::ServerAsyncStreamingInterface stream,
::grpc_impl::CompletionQueue call_cq,
::grpc_impl::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

Friends And Related Function Documentation

◆ grpc_impl::Server

friend class grpc_impl::Server
friend

◆ ServerInterface

friend class ServerInterface
friend

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