diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-30 16:36:14 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-30 16:36:14 +0200 |
| commit | fff831ff736e90fa6175fcb6f3000408218957e7 (patch) | |
| tree | f48320f1e6ff04a11c38741e9f233634452941d5 /network-handler/nodeclient.hpp | |
| parent | 5bac5321fa5ab128cee2f0b8c549945bd6a1ccfc (diff) | |
| download | cmix-fff831ff736e90fa6175fcb6f3000408218957e7.tar.gz cmix-fff831ff736e90fa6175fcb6f3000408218957e7.tar.bz2 cmix-fff831ff736e90fa6175fcb6f3000408218957e7.zip | |
Replaced Client based implementation to composition instead of inheritance.
Diffstat (limited to 'network-handler/nodeclient.hpp')
| -rw-r--r-- | network-handler/nodeclient.hpp | 8 |
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); }; |
