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

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 = absl::AnyInvocable< void(std::unique_ptr< Endpoint >, MemoryAllocator memory_allocator)>
 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
 
- Public Member Functions inherited from grpc_event_engine::experimental::Extensible
virtual void * QueryExtension (absl::string_view)
 A method which allows users to query whether an implementation supports a specified extension. More...
 

Detailed Description

Listens for incoming connection requests from gRPC clients and initiates request processing once connections are established.

Member Typedef Documentation

◆ AcceptCallback

using grpc_event_engine::experimental::EventEngine::Listener::AcceptCallback = absl::AnyInvocable<void( std::unique_ptr<Endpoint>, MemoryAllocator memory_allocator)>

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: