diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 15:53:53 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 15:53:53 +0100 |
| commit | 9c2231c8fb45f32c7b1d23e14125bc58ea405e60 (patch) | |
| tree | 907b72521a0c8bf03c99432817be11ddc12eef3a /src/control_connection.hpp | |
| parent | 106eb9578179b04dbe9278e3197391db168e6ebb (diff) | |
| download | wanda-9c2231c8fb45f32c7b1d23e14125bc58ea405e60.tar.xz wanda-9c2231c8fb45f32c7b1d23e14125bc58ea405e60.zip | |
core: implement basic message type
Diffstat (limited to 'src/control_connection.hpp')
| -rw-r--r-- | src/control_connection.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/control_connection.hpp b/src/control_connection.hpp index 50eee82..ea2475c 100644 --- a/src/control_connection.hpp +++ b/src/control_connection.hpp @@ -2,6 +2,7 @@ #define WANDA_CONTROL_CONNECTION_HPP #include "keyed.hpp" +#include "message.hpp" #include <boost/asio.hpp> @@ -22,7 +23,7 @@ struct control_connection : keyed<control_connection>, std::enable_shared_from_t struct listener { virtual void on_close(pointer connection) {} - virtual void on_received(pointer connection, std::string message) {} + virtual void on_received(pointer connection, message message) {} virtual void on_error(pointer connection, boost::system::error_code) {} }; @@ -58,7 +59,7 @@ struct control_connection : keyed<control_connection>, std::enable_shared_from_t */ void close(); - void send(std::string message); + void send(message message); private: friend pointer make_control_connection(protocol::socket &&socket); |
