GRPC Core
18.0.0
|
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::ListenSocketNode * | channelz_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... | |
![]() | |
virtual void | Orphan ()=0 |
Orphanable (const Orphanable &)=delete | |
Orphanable & | operator= (const Orphanable &)=delete |
Additional Inherited Members | |
![]() | |
Orphanable () | |
virtual | ~Orphanable () |
Interface for listeners.
Implementations must override the Orphan() method, which should stop listening and initiate destruction of the listener.
|
overridedefault |
|
pure virtual |
Returns the channelz node for the listen socket, or null if not supported.
|
pure virtual |
Sets a closure to be invoked by the listener when its destruction is complete.
|
pure virtual |
Starts listening.
This listener may refer to the pollset object beyond this call, so it is a pointer rather than a reference.