GRPC C++  1.16.0-dev
Data Structures | Typedefs | Functions | Variables
grpc::internal Namespace Reference

Models a gRPC server. More...

Data Structures

class  AsyncReaderInterface
 An interface that yields a sequence of messages of type R. More...
 
class  AsyncWriterInterface
 An interface that can be fed a sequence of messages of type W. More...
 
class  BidiStreamingHandler
 
class  BlockingUnaryCallImpl
 
class  Call
 Straightforward wrapping of the C call object. More...
 
class  CallbackUnaryCallImpl
 
class  CallbackWithStatusTag
 
class  CallbackWithSuccessTag
 
class  CallHook
 This is an interface that Channel and Server implement to allow them to hook performing ops. More...
 
class  CallNoOp
 Default argument for CallOpSet. More...
 
class  CallOpClientRecvStatus
 
class  CallOpClientSendClose
 
class  CallOpGenericRecvMessage
 
class  CallOpRecvInitialMetadata
 
class  CallOpRecvMessage
 
class  CallOpSendInitialMetadata
 
class  CallOpSendMessage
 
class  CallOpServerSendStatus
 
class  CallOpSet
 Primary implementation of CallOpSetInterface. More...
 
class  CallOpSetInterface
 An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the lower layers, and as it is-a CompletionQueueTag, also massages the final completion into the correct form for consumption in the C++ API. More...
 
class  ClientAsyncReaderFactory
 
class  ClientAsyncReaderWriterFactory
 
class  ClientAsyncResponseReaderFactory
 
class  ClientAsyncStreamingInterface
 Common interface for all client side asynchronous streaming. More...
 
class  ClientAsyncWriterFactory
 
class  ClientReaderFactory
 
class  ClientReaderWriterFactory
 
class  ClientStreamingHandler
 A wrapper class of an application provided client streaming handler. More...
 
class  ClientStreamingInterface
 Common interface for all synchronous client side streaming. More...
 
class  ClientWriterFactory
 
class  CompletionQueueTag
 An interface allowing implementors to process and filter event tags. More...
 
class  DeserializeFunc
 
class  DeserializeFuncType
 
class  ErrorMethodHandler
 General method handler class for errors that prevent real method use e.g., handle unknown method by returning UNIMPLEMENTED error. More...
 
class  GrpcLibrary
 
class  GrpcLibraryInitializer
 Instantiating this class ensures the proper initialization of gRPC. More...
 
class  MetadataMap
 
class  MethodHandler
 Base class for running an RPC handler. More...
 
class  ReaderInterface
 An interface that yields a sequence of messages of type R. More...
 
class  RpcMethod
 Descriptor of an RPC method. More...
 
class  RpcMethodHandler
 A wrapper class of an application provided rpc method handler. More...
 
class  RpcServiceMethod
 Server side rpc method class. More...
 
class  ServerAsyncStreamingInterface
 
class  ServerReaderWriterBody
 
class  ServerStreamingHandler
 A wrapper class of an application provided server streaming handler. More...
 
class  ServerStreamingInterface
 Common interface for all synchronous server side streaming. More...
 
class  SplitServerStreamingHandler
 
class  StreamedUnaryHandler
 
class  TemplatedBidiStreamingHandler
 A wrapper class of an application provided bidi-streaming handler. More...
 
class  WriterInterface
 An interface that can be fed a sequence of messages of type W. More...
 

Typedefs

typedef ErrorMethodHandler< StatusCode::UNIMPLEMENTED > UnknownMethodHandler
 
typedef ErrorMethodHandler< StatusCode::RESOURCE_EXHAUSTED > ResourceExhaustedHandler
 

Functions

grpc_metadataFillMetadataArray (const std::multimap< grpc::string, grpc::string > &metadata, size_t *metadata_count, const grpc::string &optional_error_details)
 
template<class InputMessage , class OutputMessage >
void CallbackUnaryCall (ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage *request, OutputMessage *result, std::function< void(Status)> on_completion)
 Perform a callback-based unary call TODO(vjpai): Combine as much as possible with the blocking unary call code. More...
 
template<class InputMessage , class OutputMessage >
Status BlockingUnaryCall (ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result)
 Wrapper that performs a blocking unary call. More...
 
template<class Callable >
Status CatchingFunctionHandler (Callable &&handler)
 

Variables

const char kBinaryErrorDetailsKey [] = "grpc-status-details-bin"
 

Detailed Description

Models a gRPC server.

Actual implementation of bi-directional streaming.

Servers are configured and started via grpc::ServerBuilder.

Typedef Documentation

◆ ResourceExhaustedHandler

typedef ErrorMethodHandler<StatusCode::RESOURCE_EXHAUSTED> grpc::internal::ResourceExhaustedHandler

◆ UnknownMethodHandler

typedef ErrorMethodHandler<StatusCode::UNIMPLEMENTED> grpc::internal::UnknownMethodHandler

Function Documentation

◆ BlockingUnaryCall()

template<class InputMessage , class OutputMessage >
Status grpc::internal::BlockingUnaryCall ( ChannelInterface channel,
const RpcMethod method,
ClientContext context,
const InputMessage &  request,
OutputMessage *  result 
)

Wrapper that performs a blocking unary call.

◆ CallbackUnaryCall()

template<class InputMessage , class OutputMessage >
void grpc::internal::CallbackUnaryCall ( ChannelInterface channel,
const RpcMethod method,
ClientContext context,
const InputMessage *  request,
OutputMessage *  result,
std::function< void(Status)>  on_completion 
)

Perform a callback-based unary call TODO(vjpai): Combine as much as possible with the blocking unary call code.

◆ CatchingFunctionHandler()

template<class Callable >
Status grpc::internal::CatchingFunctionHandler ( Callable &&  handler)

◆ FillMetadataArray()

grpc_metadata* grpc::internal::FillMetadataArray ( const std::multimap< grpc::string, grpc::string > &  metadata,
size_t *  metadata_count,
const grpc::string optional_error_details 
)
inline

Variable Documentation

◆ kBinaryErrorDetailsKey

const char grpc::internal::kBinaryErrorDetailsKey[] = "grpc-status-details-bin"