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/client.cpp | |
| 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/client.cpp')
| -rw-r--r-- | network-handler/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network-handler/client.cpp b/network-handler/client.cpp index f767f6d..19b6f34 100644 --- a/network-handler/client.cpp +++ b/network-handler/client.cpp @@ -20,7 +20,7 @@ void Client::handle_receive(const error_code &ec, size_t read_bytes) if(!ec) { std::vector<uint8_t> data(std::istream_iterator<uint8_t>(is), {}); - std::cout << "Received: " << std::string(data.begin(), data.end()) << std::endl; + handle_message(data); receive(); } else { done(); |
