Abstracts away connections implementation and their life-cycle. More...
#include <accept_server.h>
Classes | |
struct | SafeConnList |
Public Member Functions | |
void | RegisterPool (ProactorPool *pool) |
virtual Connection * | NewConnection (Proactor *context)=0 |
virtual void | PreAcceptLoop (Proactor *owner) |
virtual void | PreShutdown () |
virtual void | PostShutdown () |
virtual uint32_t | GetSockOptMask () const |
Protected Member Functions | |
ProactorPool * | pool () |
FiberSocket * | listener () |
Abstracts away connections implementation and their life-cycle.
Definition at line 69 of file accept_server.h.
|
pure virtual |
Creates a dedicated handler for a new connection. Called per new accepted connection
Implemented in util::uring::HttpListener< Handler >.
|
inlinevirtual |
Hook to be notified when listener interface start listening and accepting sockets. Called once.
Definition at line 81 of file accept_server.h.