GRPC C++  1.39.1
Public Member Functions
grpc_core::Server::ListenerInterface Class Referenceabstract

Interface for listeners. More...

#include <server.h>

Public Member Functions

 ~ListenerInterface () override=default
 
virtual void Start (Server *server, const std::vector< grpc_pollset * > *pollsets)=0
 Starts listening. More...
 
virtual channelz::ListenSocketNodechannelz_listen_socket_node () const =0
 Returns the channelz node for the listen socket, or null if not supported. More...
 
virtual void SetOnDestroyDone (grpc_closure *on_destroy_done)=0
 Sets a closure to be invoked by the listener when its destruction is complete. More...
 
- Public Member Functions inherited from grpc_core::Orphanable
virtual void Orphan ()=0
 
 Orphanable (const Orphanable &)=delete
 
Orphanableoperator= (const Orphanable &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::Orphanable
 Orphanable ()
 
virtual ~Orphanable ()
 

Detailed Description

Interface for listeners.

Implementations must override the Orphan() method, which should stop listening and initiate destruction of the listener.

Constructor & Destructor Documentation

◆ ~ListenerInterface()

grpc_core::Server::ListenerInterface::~ListenerInterface ( )
overridedefault

Member Function Documentation

◆ channelz_listen_socket_node()

virtual channelz::ListenSocketNode* grpc_core::Server::ListenerInterface::channelz_listen_socket_node ( ) const
pure virtual

Returns the channelz node for the listen socket, or null if not supported.

◆ SetOnDestroyDone()

virtual void grpc_core::Server::ListenerInterface::SetOnDestroyDone ( grpc_closure on_destroy_done)
pure virtual

Sets a closure to be invoked by the listener when its destruction is complete.

◆ Start()

virtual void grpc_core::Server::ListenerInterface::Start ( Server server,
const std::vector< grpc_pollset * > *  pollsets 
)
pure virtual

Starts listening.

This listener may refer to the pollset object beyond this call, so it is a pointer rather than a reference.


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