aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörgen Scott <jorgen.scott@gmail.com>2015-06-25 15:47:49 +0200
committerJörgen Scott <jorgen.scott@gmail.com>2015-06-25 15:47:49 +0200
commit01505ec9fba630e039b1f25d65cf2dfc69d6088c (patch)
tree94dff97f0955d52ea3a1ff4c560282287b891032 /src
parent414937620c2e8bc3ad0b7181e90d320a05369db3 (diff)
downloaddabmod-01505ec9fba630e039b1f25d65cf2dfc69d6088c.tar.gz
dabmod-01505ec9fba630e039b1f25d65cf2dfc69d6088c.tar.bz2
dabmod-01505ec9fba630e039b1f25d65cf2dfc69d6088c.zip
changed cout to cerr
Diffstat (limited to 'src')
-rw-r--r--src/RemoteControl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp
index 65da3b7..7a2af00 100644
--- a/src/RemoteControl.cpp
+++ b/src/RemoteControl.cpp
@@ -308,7 +308,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
@@ -342,10 +342,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)
{