#include <evo/ioasync_server.h>
Default shared data (empty) using default global data type.
- The user defined
ServerHandler may define a Shared type that inherits this
- Caution: Only use this if your
ServerHandler does not define a Global type (or use SimpleSharedBase), otherwise you'll get compiler errors
|
| 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...
|
| |
◆ Global
◆ on_init()
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
-
| server | Server AsyncBase instance |
| global | Reference to global data |
- Returns
- Whether successful, false on critical error (which prevents server startup)
◆ on_uninit()
Called when server is shutting down, after last request has completed.
The documentation for this struct was generated from the following file: