diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-29 15:35:26 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-29 15:35:26 +0200 |
| commit | 7097015fa3d2737b2e9438fdba9ec7b8f5630421 (patch) | |
| tree | 1fc277780216aa9142281458967d94a1cb4fcd1f /network-handler/nodeclient.hpp | |
| parent | cffc1ec24d7781130b600a24b9726b5168a7b053 (diff) | |
| download | cmix-7097015fa3d2737b2e9438fdba9ec7b8f5630421.tar.gz cmix-7097015fa3d2737b2e9438fdba9ec7b8f5630421.tar.bz2 cmix-7097015fa3d2737b2e9438fdba9ec7b8f5630421.zip | |
Refactored Client to be more reusable.
Added UserClient and NodeClient classes to handle communication from and
to Clients and Nodes respectively.
Diffstat (limited to 'network-handler/nodeclient.hpp')
| -rw-r--r-- | network-handler/nodeclient.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/network-handler/nodeclient.hpp b/network-handler/nodeclient.hpp new file mode 100644 index 0000000..00d8450 --- /dev/null +++ b/network-handler/nodeclient.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include "client.hpp" + +#include <boost/asio/ip/tcp.hpp> + +#include <vector> + +class NodeClient : public Client +{ + virtual void handle_message(std::vector<uint8_t> message) override final; + +public: + NodeClient(boost::asio::ip::tcp::socket&& socket); + virtual ~NodeClient() = default; +}; |
