cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class to handle Linux signals SIGINT and SIGTERM to stop a server. More...
#include <msgpack_rpc/servers/stop_signal_handler.h>
Public Member Functions | |
StopSignalHandler (std::shared_ptr< logging::Logger > logger) | |
Constructor. | |
void | stop () |
Stop waiting. | |
void | wait () |
Wait for a signal SIGINT or SIGTERM. |
Private Attributes | |
asio::io_context | context_ |
Context of asio library. | |
std::shared_ptr< logging::Logger > | logger_ |
Logger. | |
asio::signal_set | signal_set_ |
Object to wait signals. |
Class to handle Linux signals SIGINT and SIGTERM to stop a server.
Definition at line 37 of file stop_signal_handler.h.
|
inlineexplicit |
|
inline |
Stop waiting.
Definition at line 66 of file stop_signal_handler.h.
|
inline |
Wait for a signal SIGINT or SIGTERM.
Definition at line 52 of file stop_signal_handler.h.
|
private |
Context of asio library.
Definition at line 70 of file stop_signal_handler.h.
|
private |
Logger.
Definition at line 76 of file stop_signal_handler.h.
|
private |
Object to wait signals.
Definition at line 73 of file stop_signal_handler.h.