aboutsummaryrefslogtreecommitdiffstats
path: root/src/RemoteControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-26 14:31:00 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-26 14:31:00 +0200
commit79274de1247590c7f350d8e6aa1b67f9cc72ab08 (patch)
treea73ec94995d377bf4bfe07255e5b0ce3cd653085 /src/RemoteControl.cpp
parent9021497ef780d5a586ec5757aff359693f0884ea (diff)
parent5e5d45c6afe3f6cae696320acfdf6875324c994c (diff)
downloaddabmod-79274de1247590c7f350d8e6aa1b67f9cc72ab08.tar.gz
dabmod-79274de1247590c7f350d8e6aa1b67f9cc72ab08.tar.bz2
dabmod-79274de1247590c7f350d8e6aa1b67f9cc72ab08.zip
Merge branch 'next' into tii
Diffstat (limited to 'src/RemoteControl.cpp')
-rw-r--r--src/RemoteControl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp
index 666f891..21a6c81 100644
--- a/src/RemoteControl.cpp
+++ b/src/RemoteControl.cpp
@@ -310,7 +310,7 @@ void RemoteControllerZmq::process()
{
// create zmq reply socket for receiving ctrl parameters
zmq::socket_t repSocket(m_zmqContext, ZMQ_REP);
- std::cout << "Starting zmq remote control thread" << std::endl;
+ std::cerr << "Starting zmq remote control thread" << std::endl;
try
{
// connect the socket
@@ -344,10 +344,9 @@ void RemoteControllerZmq::process()
try
{
std::string value = get_param_(module, parameter);
- zmq::message_t *pMsg = new zmq::message_t(value.size());
- memcpy ((void*) pMsg->data(), value.data(), value.size());
- repSocket.send(*pMsg, 0);
- delete pMsg;
+ zmq::message_t msg(value.size());
+ memcpy ((void*) msg.data(), value.data(), value.size());
+ repSocket.send(&msg, 0);
}
catch (ParameterError &err)
{