summaryrefslogtreecommitdiff
path: root/gr-zeromq/lib/req_source_impl.cc
diff options
context:
space:
mode:
authorBrennan Ashton <bashton@brennanashton.com>2019-10-28 22:05:09 -0700
committerMarcus Müller <mmueller@gnuradio.org>2019-11-01 16:02:11 +0100
commit189cc957e8dd5956771f7676d0a14ce573672432 (patch)
tree9b8011af3301fb2dc7764195b1bea93264bafb97 /gr-zeromq/lib/req_source_impl.cc
parent97b4b75d26c5074b4dd6d16ae73bb8f1400c1e17 (diff)
gr-zeromq: Fix warnings deprecated send since 4.3.1 extends PR #2503
Wrap some missed send calls with helper define and make sure zmq_common_impl.h is being used everywhere instead of zmq.hpp Most were already pulling this in via the base_impl.h Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
Diffstat (limited to 'gr-zeromq/lib/req_source_impl.cc')
-rw-r--r--gr-zeromq/lib/req_source_impl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-zeromq/lib/req_source_impl.cc b/gr-zeromq/lib/req_source_impl.cc
index c7e87b742a..f9f06362c4 100644
--- a/gr-zeromq/lib/req_source_impl.cc
+++ b/gr-zeromq/lib/req_source_impl.cc
@@ -77,7 +77,11 @@ int req_source_impl::work(int noutput_items,
uint32_t req_len = noutput_items - done;
zmq::message_t request(sizeof(uint32_t));
memcpy((void*)request.data(), &req_len, sizeof(uint32_t));
+#if USE_NEW_CPPZMQ_SEND_RECV
+ d_socket->send(request, zmq::send_flags::none);
+#else
d_socket->send(request);
+#endif
d_req_pending = true;
}