GRPC C++  1.39.1
Public Types | Public Member Functions
grpc_event_engine::experimental::EndpointConfig Class Referenceabstract

A set of parameters used to configure an endpoint, either when initiating a new connection on the client side or when listening for incoming connections on the server side. More...

#include <endpoint_config.h>

Public Types

using Setting = absl::variant< absl::monostate, int, absl::string_view, void * >
 

Public Member Functions

virtual ~EndpointConfig ()=default
 
virtual Setting Get (absl::string_view key) const =0
 Returns an EndpointConfig Setting. More...
 

Detailed Description

A set of parameters used to configure an endpoint, either when initiating a new connection on the client side or when listening for incoming connections on the server side.

An EndpointConfig contains a set of zero or more Settings. Each setting has a unique name, which can be used to fetch that Setting via the Get() method. Each Setting has a value, which can be an integer, string, or void pointer. Each EE impl should define the set of Settings that it supports being passed into it, along with the corresponding type.

Member Typedef Documentation

◆ Setting

using grpc_event_engine::experimental::EndpointConfig::Setting = absl::variant<absl::monostate, int, absl::string_view, void*>

Constructor & Destructor Documentation

◆ ~EndpointConfig()

virtual grpc_event_engine::experimental::EndpointConfig::~EndpointConfig ( )
virtualdefault

Member Function Documentation

◆ Get()

virtual Setting grpc_event_engine::experimental::EndpointConfig::Get ( absl::string_view  key) const
pure virtual

Returns an EndpointConfig Setting.

If there is no Setting associated with key in the EndpointConfig, an absl::monostate type will be returned. Caller does not take ownership of resulting value.


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