template<class T>
struct evo::Signal::MainServer< T >
Helper for common server shutdown signal handling in program main()
.
- This expands on Signal::Main for use with servers like AsyncServer and provides a default on_shutdown() callback for shutting down the server
- This uses a static variable for current server, so shutdown handler can do it's job without a global variable
- This should be used in the same scope as the given server instance
- Template Parameters
-
T | Server type to use, usually an AsyncServer – must have shutdown() method (with no params) |