aboutsummaryrefslogtreecommitdiff
path: root/src/commander.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-10 09:25:14 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-10 09:25:14 +0100
commitd3e691c9200b7b782c8acf17468068a699588a73 (patch)
tree44f179ebf773dc8536b220f2ffcc3d2eec374aa4 /src/commander.hpp
parent7b940a39dfef6f19846fe357d4a5167c66c79e85 (diff)
downloadwanda-d3e691c9200b7b782c8acf17468068a699588a73.tar.xz
wanda-d3e691c9200b7b782c8acf17468068a699588a73.zip
doc: update documentation
Diffstat (limited to 'src/commander.hpp')
-rw-r--r--src/commander.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/commander.hpp b/src/commander.hpp
index 131022d..42a2ab6 100644
--- a/src/commander.hpp
+++ b/src/commander.hpp
@@ -15,8 +15,15 @@
namespace wanda
{
+ /**
+ * @brief The remote control client
+ *
+ */
struct commander : wanda::control_connection::listener
{
+ /**
+ * @brief The interface to be implemented by remote control listeners
+ */
struct listener
{
virtual void on_connected(commander & commander){};
@@ -24,10 +31,24 @@ namespace wanda
virtual void on_error(commander & commander, std::string error){};
};
+ /**
+ * @brief Construct a new commander
+ */
commander(asio::io_service & service, std::filesystem::path socket, listener & listener);
+ /**
+ * @brief Start communication with the remote daemon endpoint
+ */
void start();
+
+ /**
+ * @brief Stop communication with the remote daemon endpoint
+ */
void stop();
+
+ /**
+ * @brief Send a command to the remote daemon endpoint
+ */
void send(command command);
void on_error(control_connection::pointer connection, std::error_code error) override;