Signals
Signals
Signals might be important to properly stop asynchronous operations, such as servers.
Boost.Asio supports signal
handling using a class called signal_set. Programs may add one or more signals to the set, and then perform an
async_wait() operation.
The specified handler will be called when one of the signals occurs. The same signal number may be registered
with multiple signal_set objects, however the signal number must be used only with Boost.Asio.
1 2 3 4 5 6 7 8 9 10 11 12 | |
1 2 | |
1 | |
1 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
1 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
1 | |
1 2 3 4 | |