diff --git a/src/DirectCommunicationServer.cpp b/src/DirectCommunicationServer.cpp index 07a6990..4971897 100644 --- a/src/DirectCommunicationServer.cpp +++ b/src/DirectCommunicationServer.cpp @@ -12,7 +12,7 @@ namespace DirectCommunication DirectCommunicationServer::DirectCommunicationServer(ushort port):port_(port) { - context_ = zmq::context_t(1); + context_ = zmq::context_t(); socket_ = zmq::socket_t(context_,zmq::socket_type::server); socket_.bind("tcp://*:"+std::to_string(port_)); @@ -93,6 +93,7 @@ namespace DirectCommunication { if (MessageHandle_ != nullptr) { + LOG_S(INFO)<<"using handle"; MessageHandle_(msg.to_string()); } else