GRPC C++  1.76.0
Public Member Functions
grpc_core::experimental::PassiveListener Class Referenceabstract

– EXPERIMENTAL API – Interface for used for Server Endpoint injection. More...

#include <passive_listener.h>

Public Member Functions

virtual ~PassiveListener ()=default
 
virtual absl::Status AcceptConnectedEndpoint (std::unique_ptr< grpc_event_engine::experimental::EventEngine::Endpoint > endpoint)=0
 – EXPERIMENTAL API – More...
 
virtual absl::Status AcceptConnectedFd (int fd)=0
 – EXPERIMENTAL API – More...
 

Detailed Description

– EXPERIMENTAL API – Interface for used for Server Endpoint injection.

Constructor & Destructor Documentation

◆ ~PassiveListener()

virtual grpc_core::experimental::PassiveListener::~PassiveListener ( )
virtualdefault

Member Function Documentation

◆ AcceptConnectedEndpoint()

virtual absl::Status grpc_core::experimental::PassiveListener::AcceptConnectedEndpoint ( std::unique_ptr< grpc_event_engine::experimental::EventEngine::Endpoint endpoint)
pure virtual

– EXPERIMENTAL API –

Takes an Endpoint for an established connection, and treats it as if the connection had been accepted by the server.

The server must be started before endpoints can be accepted.

◆ AcceptConnectedFd()

virtual absl::Status grpc_core::experimental::PassiveListener::AcceptConnectedFd ( int  fd)
pure virtual

– EXPERIMENTAL API –

Takes a connected file descriptor, and treats it as if the server had accepted the connection itself.

Returns a failure status if the server's active EventEngine does not support Endpoint creation from fds.


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