GRPC C++
1.26.0
|
NOTE: class experimental_type is not part of the public API of this class. More...
#include <server_builder_impl.h>
Public Types | |
enum class | ExternalConnectionType { FROM_FD = 0 } |
Public Member Functions | |
experimental_type (grpc_impl::ServerBuilder *builder) | |
void | SetInterceptorCreators (std::vector< std::unique_ptr< grpc::experimental::ServerInterceptorFactoryInterface >> interceptor_creators) |
ServerBuilder & | RegisterCallbackGenericService (grpc::experimental::CallbackGenericService *service) |
Register a generic service that uses the callback API. More... | |
std::unique_ptr< grpc::experimental::ExternalConnectionAcceptor > | AddExternalConnectionAcceptor (ExternalConnectionType type, std::shared_ptr< ServerCredentials > creds) |
Register an acceptor to handle the externally accepted connection in grpc server. More... | |
NOTE: class experimental_type is not part of the public API of this class.
TODO(yashykt): Integrate into public API when this is no longer experimental.
|
inlineexplicit |
std::unique_ptr< grpc::experimental::ExternalConnectionAcceptor > grpc_impl::ServerBuilder::experimental_type::AddExternalConnectionAcceptor | ( | experimental_type::ExternalConnectionType | type, |
std::shared_ptr< ServerCredentials > | creds | ||
) |
Register an acceptor to handle the externally accepted connection in grpc server.
The returned acceptor can be used to pass the connection to grpc server, where a channel will be created with the provided server credentials.
ServerBuilder & grpc_impl::ServerBuilder::experimental_type::RegisterCallbackGenericService | ( | grpc::experimental::CallbackGenericService * | service | ) |
Register a generic service that uses the callback API.
Matches requests with any :authority This is mostly useful for writing generic gRPC Proxies where the exact serialization format is unknown
|
inline |