From 7097015fa3d2737b2e9438fdba9ec7b8f5630421 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 29 Aug 2016 15:35:26 +0200 Subject: Refactored Client to be more reusable. Added UserClient and NodeClient classes to handle communication from and to Clients and Nodes respectively. --- network-handler/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network-handler/client.cpp') 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 data(std::istream_iterator(is), {}); - std::cout << "Received: " << std::string(data.begin(), data.end()) << std::endl; + handle_message(data); receive(); } else { done(); -- cgit v1.2.3-70-g09d2