|
ORE Studio 0.0.4
|
Manages commands related to connections. More...
#include <connection_commands.hpp>

Static Public Member Functions | |
| static void | register_commands (cli::Menu &root, comms::net::client_session &session) |
| Register connection management commands. | |
| static void | process_connect (std::ostream &out, comms::net::client_session &session, std::string host, std::string port, std::string identifier) |
| Process a connection request. | |
| static void | process_disconnect (std::ostream &out, comms::net::client_session &session) |
| Process a disconnect request. | |
Manages commands related to connections.
|
static |
Register connection management commands.
Adds connect and disconnect commands to the root menu.
| root | The root menu to add commands to |
| session | Client session for connectivity. |
|
static |
Process a connection request.
Handles the async connection workflow including configuration updates and existing connection cleanup.
| out | Output stream for user feedback. |
| session | Client session for connectivity. |
| host | New host (empty to keep current). |
| port | New port (empty to keep current). |
| identifier | New client identifier (empty to keep current). |

|
static |
Process a disconnect request.
Cleanly disconnects from the server if connected.
| out | Output stream for user feedback. |
| session | Client session for connectivity. |
