aboutsummaryrefslogtreecommitdiff
path: root/libcmix-network/client.cpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-28 10:55:58 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-28 10:55:58 +0200
commit85d25eebd38bb278ad598a291a007938854945a4 (patch)
treeb6f26a8f5a301c9a18d7ab6de5805de7d660cade /libcmix-network/client.cpp
parentfa0b4963e977c59586b41e146ea13f44bda714ab (diff)
downloadcmix-85d25eebd38bb278ad598a291a007938854945a4.tar.gz
cmix-85d25eebd38bb278ad598a291a007938854945a4.tar.bz2
cmix-85d25eebd38bb278ad598a291a007938854945a4.zip
Made changes so we can have a 1 Node cmix network.
Diffstat (limited to 'libcmix-network/client.cpp')
-rw-r--r--libcmix-network/client.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcmix-network/client.cpp b/libcmix-network/client.cpp
index 544dd87..ce9fd4d 100644
--- a/libcmix-network/client.cpp
+++ b/libcmix-network/client.cpp
@@ -1,5 +1,7 @@
#include "client.hpp"
+#include "logging.hpp"
+
#include <boost/asio/placeholders.hpp>
#include <boost/bind.hpp>
@@ -19,10 +21,11 @@ void Client::handle_receive(MessageHandler message_handler, const error_code &ec
buffer.commit(read_bytes);
std::istream is(&buffer);
+ BOOST_LOG_TRIVIAL(trace) << "handling receive";
+
if(!ec) {
std::vector<uint8_t> data(std::istream_iterator<uint8_t>(is), {});
message_handler(data);
- receive(message_handler);
} else {
if(done) {
done();