Evo C++ Library v0.5.1
Public Types | Public Member Functions | List of all members
AsyncServerHandler::Shared Struct Reference

#include <evo/ioasync_server.h>

Inheritance diagram for AsyncServerHandler::Shared:
Inheritance graph
[legend]

Detailed Description

Default shared data (empty) using default global data type.

Public Types

typedef Global Global
 Global data type used. More...
 

Public Member Functions

bool on_init (AsyncBase &server, Global &global)
 Called when server is initialized, before any connections are accepted. More...
 
void on_uninit ()
 Called when server is shutting down, after last request has completed. More...
 

Member Typedef Documentation

◆ Global

typedef Global Global
inherited

Global data type used.

Member Function Documentation

◆ on_init()

bool on_init ( AsyncBase server,
Global global 
)
inlineinherited

Called when server is initialized, before any connections are accepted.

  • When overriding this Shared struct, this is the place to attach any async clients so they use the server event-loop
Parameters
serverServer AsyncBase instance
globalReference to global data
Returns
Whether successful, false on critical error (which prevents server startup)

◆ on_uninit()

void on_uninit ( )
inlineinherited

Called when server is shutting down, after last request has completed.


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