diff options
Diffstat (limited to 'gr-zeromq/lib/rep_msg_sink_impl.cc')
-rw-r--r-- | gr-zeromq/lib/rep_msg_sink_impl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-zeromq/lib/rep_msg_sink_impl.cc b/gr-zeromq/lib/rep_msg_sink_impl.cc index e1ac19e809..c2e187ff2c 100644 --- a/gr-zeromq/lib/rep_msg_sink_impl.cc +++ b/gr-zeromq/lib/rep_msg_sink_impl.cc @@ -117,7 +117,11 @@ void rep_msg_sink_impl::readloop() std::string s = sb.str(); zmq::message_t zmsg(s.size()); memcpy(zmsg.data(), s.c_str(), s.size()); +#if USE_NEW_CPPZMQ_SEND_RECV + d_socket->send(zmsg, zmq::send_flags::none); +#else d_socket->send(zmsg); +#endif } // if req } // while !empty |