GRPC C++
1.71.0
|
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 |
![]() | |
virtual void * | QueryExtension (absl::string_view) |
A method which allows users to query whether an implementation supports a specified extension. More... | |
Additional Inherited Members | |
![]() | |
~Extensible ()=default | |
Listens for incoming connection requests from gRPC clients and initiates request processing once connections are established.
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.
|
virtualdefault |
|
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.
|
pure virtual |