Actual implementation of bi-directional streaming. More...
Typedefs | |
typedef ErrorMethodHandler< grpc::StatusCode::RESOURCE_EXHAUSTED > | ResourceExhaustedHandler |
template<class Request , class Response > | |
using | UnimplementedBidiReactor = FinishOnlyReactor< ServerBidiReactor< Request, Response > > |
template<class Request > | |
using | UnimplementedReadReactor = FinishOnlyReactor< ServerReadReactor< Request > > |
using | UnimplementedUnaryReactor = FinishOnlyReactor< ServerUnaryReactor > |
template<class Response > | |
using | UnimplementedWriteReactor = FinishOnlyReactor< ServerWriteReactor< Response > > |
typedef ErrorMethodHandler< grpc::StatusCode::UNIMPLEMENTED > | UnknownMethodHandler |
Functions | |
template<class InputMessage , class OutputMessage , class BaseInputMessage = InputMessage, class BaseOutputMessage = OutputMessage> | |
Status | BlockingUnaryCall (ChannelInterface *channel, const RpcMethod &method, grpc::ClientContext *context, const InputMessage &request, OutputMessage *result) |
template<class InputMessage , class OutputMessage , class BaseInputMessage = InputMessage, class BaseOutputMessage = OutputMessage> | |
void | CallbackUnaryCall (grpc::ChannelInterface *channel, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, const InputMessage *request, OutputMessage *result, std::function< void(grpc::Status)> on_completion) |
template<class Func , class... Args> | |
void | CatchingCallback (Func &&func, Args &&... args) |
An exception-safe way of invoking a user-specified callback function. More... | |
template<class Callable > | |
::grpc::Status | CatchingFunctionHandler (Callable &&handler) |
template<class Reactor , class Func , class... Args> | |
Reactor * | CatchingReactorGetter (Func &&func, Args &&... args) |
grpc_channel * | CreateClientBinderChannelImpl (const grpc_channel_args *args) |
grpc_channel * | CreateDirectBinderChannelImplForTesting (std::unique_ptr< grpc_binder::Binder > endpoint_binder, const grpc_channel_args *args, std::shared_ptr< grpc::experimental::binder::SecurityPolicy > security_policy) |
grpc_metadata * | FillMetadataArray (const std::multimap< std::string, std::string > &metadata, size_t *metadata_count, const std::string &optional_error_details) |
void | RegisterChannelFilter (grpc_channel_stack_type stack_type, int priority, std::function< bool(const grpc_channel_args &)> include_filter, const grpc_channel_filter *filter) |
TEST_F (ProtoUtilsTest, TinyBackupThenNext) | |
template<class RequestType > | |
void * | UnaryDeserializeHelper (grpc_byte_buffer *req, grpc::Status *status, RequestType *request) |
A helper function with reduced templating to do deserializing. More... | |
template<class ResponseType > | |
void | UnaryRunHandlerHelper (const grpc::internal::MethodHandler::HandlerParameter &, ResponseType *, grpc::Status &) |
template<typename Predicate > | |
static void | WaitUntil (CondVar *cv, Mutex *mu, Predicate pred) |
std::shared_ptr< ChannelCredentials > | WrapChannelCredentials (grpc_channel_credentials *creds) |
Variables | |
experimental::ClientInterceptorFactoryInterface * | g_global_client_interceptor_factory = nullptr |
const char | kBinaryErrorDetailsKey [] = "grpc-status-details-bin" |
Actual implementation of bi-directional streaming.
Models a gRPC server.
Servers are configured and started via grpc::ServerBuilder.
typedef ErrorMethodHandler<grpc::StatusCode::RESOURCE_EXHAUSTED> grpc::internal::ResourceExhaustedHandler |
Definition at line 401 of file impl/codegen/method_handler.h.
using grpc::internal::UnimplementedBidiReactor = typedef FinishOnlyReactor<ServerBidiReactor<Request, Response> > |
Definition at line 784 of file impl/codegen/server_callback.h.
using grpc::internal::UnimplementedReadReactor = typedef FinishOnlyReactor<ServerReadReactor<Request> > |
Definition at line 778 of file impl/codegen/server_callback.h.
using grpc::internal::UnimplementedUnaryReactor = typedef FinishOnlyReactor<ServerUnaryReactor> |
Definition at line 776 of file impl/codegen/server_callback.h.
using grpc::internal::UnimplementedWriteReactor = typedef FinishOnlyReactor<ServerWriteReactor<Response> > |
Definition at line 781 of file impl/codegen/server_callback.h.
Definition at line 399 of file impl/codegen/method_handler.h.
Status grpc::internal::BlockingUnaryCall | ( | ChannelInterface * | channel, |
const RpcMethod & | method, | ||
grpc::ClientContext * | context, | ||
const InputMessage & | request, | ||
OutputMessage * | result | ||
) |
Wrapper that performs a blocking unary call. May optionally specify the base class of the Request and Response so that the internal calls and structures below this may be based on those base classes and thus achieve code reuse across different RPCs (e.g., for protobuf, MessageLite would be a base class).
Definition at line 45 of file grpcpp/impl/codegen/client_unary_call.h.
void grpc::internal::CallbackUnaryCall | ( | grpc::ChannelInterface * | channel, |
const grpc::internal::RpcMethod & | method, | ||
grpc::ClientContext * | context, | ||
const InputMessage * | request, | ||
OutputMessage * | result, | ||
std::function< void(grpc::Status)> | on_completion | ||
) |
Perform a callback-based unary call. May optionally specify the base class of the Request and Response so that the internal calls and structures below this may be based on those base classes and thus achieve code reuse across different RPCs (e.g., for protobuf, MessageLite would be a base class). TODO(vjpai): Combine as much as possible with the blocking unary call code
Definition at line 51 of file impl/codegen/client_callback.h.
void grpc::internal::CatchingCallback | ( | Func && | func, |
Args &&... | args | ||
) |
An exception-safe way of invoking a user-specified callback function.
Definition at line 41 of file callback_common.h.
::grpc::Status grpc::internal::CatchingFunctionHandler | ( | Callable && | handler | ) |
Definition at line 41 of file impl/codegen/method_handler.h.
Reactor* grpc::internal::CatchingReactorGetter | ( | Func && | func, |
Args &&... | args | ||
) |
Definition at line 54 of file callback_common.h.
grpc_channel * grpc::internal::CreateClientBinderChannelImpl | ( | const grpc_channel_args * | args | ) |
Definition at line 67 of file channel_create_impl.cc.
grpc_channel * grpc::internal::CreateDirectBinderChannelImplForTesting | ( | std::unique_ptr< grpc_binder::Binder > | endpoint_binder, |
const grpc_channel_args * | args, | ||
std::shared_ptr< grpc::experimental::binder::SecurityPolicy > | security_policy | ||
) |
Definition at line 43 of file channel_create_impl.cc.
|
inline |
Definition at line 55 of file call_op_set.h.
void grpc::internal::RegisterChannelFilter | ( | grpc_channel_stack_type | stack_type, |
int | priority, | ||
std::function< bool(const grpc_channel_args &)> | include_filter, | ||
const grpc_channel_filter * | filter | ||
) |
Definition at line 73 of file common/channel_filter.cc.
grpc::internal::TEST_F | ( | ProtoUtilsTest | , |
TinyBackupThenNext | |||
) |
Definition at line 72 of file proto_utils_test.cc.
void * grpc::internal::UnaryDeserializeHelper | ( | grpc_byte_buffer * | req, |
grpc::Status * | status, | ||
RequestType * | request | ||
) |
A helper function with reduced templating to do deserializing.
Definition at line 82 of file impl/codegen/method_handler.h.
void grpc::internal::UnaryRunHandlerHelper | ( | const grpc::internal::MethodHandler::HandlerParameter & | , |
ResponseType * | , | ||
grpc::Status & | |||
) |
A helper function with reduced templating to do the common work needed to actually send the server response. Uses non-const parameter for Status since this should only ever be called from the end of the RunHandler method.
Definition at line 59 of file impl/codegen/method_handler.h.
|
static |
Definition at line 149 of file include/grpcpp/impl/codegen/sync.h.
std::shared_ptr< ChannelCredentials > grpc::internal::WrapChannelCredentials | ( | grpc_channel_credentials * | creds | ) |
Definition at line 96 of file secure_credentials.cc.
experimental::ClientInterceptorFactoryInterface * grpc::internal::g_global_client_interceptor_factory = nullptr |
Definition at line 26 of file client_interceptor.cc.