GRPC C++  1.26.0
Public Types | Public Member Functions
grpc_impl::ServerBuilder::experimental_type Class Reference

NOTE: class experimental_type is not part of the public API of this class. More...

#include <server_builder_impl.h>

Public Types

enum  ExternalConnectionType { 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)
 
ServerBuilderRegisterCallbackGenericService (grpc::experimental::CallbackGenericService *service)
 Register a generic service that uses the callback API. More...
 
std::unique_ptr< grpc::experimental::ExternalConnectionAcceptorAddExternalConnectionAcceptor (ExternalConnectionType type, std::shared_ptr< ServerCredentials > creds)
 Register an acceptor to handle the externally accepted connection in grpc server. More...
 

Detailed Description

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.

Member Enumeration Documentation

◆ ExternalConnectionType

Enumerator
FROM_FD 

Constructor & Destructor Documentation

◆ experimental_type()

grpc_impl::ServerBuilder::experimental_type::experimental_type ( grpc_impl::ServerBuilder builder)
inlineexplicit

Member Function Documentation

◆ AddExternalConnectionAcceptor()

std::unique_ptr<grpc::experimental::ExternalConnectionAcceptor> grpc_impl::ServerBuilder::experimental_type::AddExternalConnectionAcceptor ( 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.

◆ RegisterCallbackGenericService()

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

◆ SetInterceptorCreators()

void grpc_impl::ServerBuilder::experimental_type::SetInterceptorCreators ( std::vector< std::unique_ptr< grpc::experimental::ServerInterceptorFactoryInterface >>  interceptor_creators)
inline

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