* @brief Add a global exit action that is called every time a session (local or remote) gets the "exit" command. * * @param action the function to be called when a session exits, taking a @c std::ostream& parameter to write on that session console. */
| 151 | * @param action the function to be called when a session exits, taking a @c std::ostream& parameter to write on that session console. |
| 152 | */ |
| 153 | void ExitAction(const std::function< void(std::ostream&)>& action) { exitAction = action; } |
| 154 | |
| 155 | /** |
| 156 | * @brief Add an handler that will be called when a @c std::exception (or derived) is thrown inside a command handler. |
no outgoing calls