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

An EventEngine Listener listens for incoming connection requests from gRPC clients and initiates request processing once connections are established. More...

#include <event_engine.h>

Public Types

using AcceptCallback = std::function< void(std::unique_ptr< Endpoint >)>
 Called when the listener has accepted a new client connection. More...
 

Public Member Functions

virtual ~Listener ()=default
 
virtual absl::StatusOr< int > Bind (const ResolvedAddress &addr)=0
 Bind an address/port to this Listener. More...
 
virtual absl::Status Start ()=0
 

Detailed Description

An EventEngine Listener listens for incoming connection requests from gRPC clients and initiates request processing once connections are established.

Member Typedef Documentation

◆ AcceptCallback

Called when the listener has accepted a new client connection.

Constructor & Destructor Documentation

◆ ~Listener()

virtual grpc_event_engine::experimental::EventEngine::Listener::~Listener ( )
virtualdefault

Member Function Documentation

◆ Bind()

virtual absl::StatusOr<int> grpc_event_engine::experimental::EventEngine::Listener::Bind ( const ResolvedAddress addr)
pure virtual

Bind an address/port to this Listener.

It is expected that multiple addresses/ports can be bound to this Listener before Listener::Start has been called. Returns either the bound port or an appropriate error status.

◆ Start()

virtual absl::Status grpc_event_engine::experimental::EventEngine::Listener::Start ( )
pure virtual

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