Classes | Public Member Functions | Protected Member Functions | List of all members
util::uring::ListenerInterface Class Referenceabstract

Abstracts away connections implementation and their life-cycle. More...

#include <accept_server.h>

+ Inheritance diagram for util::uring::ListenerInterface:

Classes

struct  SafeConnList
 

Public Member Functions

void RegisterPool (ProactorPool *pool)
 
virtual ConnectionNewConnection (Proactor *context)=0
 
virtual void PreAcceptLoop (Proactor *owner)
 
virtual void PreShutdown ()
 
virtual void PostShutdown ()
 
virtual uint32_t GetSockOptMask () const
 

Protected Member Functions

ProactorPoolpool ()
 
FiberSocketlistener ()
 

Detailed Description

Abstracts away connections implementation and their life-cycle.

Definition at line 69 of file accept_server.h.

Member Function Documentation

◆ NewConnection()

virtual Connection* util::uring::ListenerInterface::NewConnection ( Proactor context)
pure virtual

Creates a dedicated handler for a new connection. Called per new accepted connection

Implemented in util::uring::HttpListener< Handler >.

◆ PreAcceptLoop()

virtual void util::uring::ListenerInterface::PreAcceptLoop ( Proactor owner)
inlinevirtual

Hook to be notified when listener interface start listening and accepting sockets. Called once.

Definition at line 81 of file accept_server.h.


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