aboutsummaryrefslogtreecommitdiff
path: root/network-handler/nodeclient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'network-handler/nodeclient.hpp')
-rw-r--r--network-handler/nodeclient.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/network-handler/nodeclient.hpp b/network-handler/nodeclient.hpp
index 00d8450..9a3799a 100644
--- a/network-handler/nodeclient.hpp
+++ b/network-handler/nodeclient.hpp
@@ -6,11 +6,15 @@
#include <vector>
-class NodeClient : public Client
+class NodeClient
{
- virtual void handle_message(std::vector<uint8_t> message) override final;
+ Client client;
+ void handle_message(std::vector<uint8_t> message);
public:
NodeClient(boost::asio::ip::tcp::socket&& socket);
virtual ~NodeClient() = default;
+
+ void receive();
+ void on_done(Client::OnDoneFT done);
};