summaryrefslogtreecommitdiff
path: root/gr-zeromq/lib/pull_source_impl.cc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2014-05-07 13:03:43 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2014-05-07 13:03:43 -0700
commit4f43490a99e41dce2cf8a5a34e154d08889bcb52 (patch)
treecddda6c9adfe816c395dfa6e4b939602c3e40398 /gr-zeromq/lib/pull_source_impl.cc
parenta3127199b8a380ff8abeaa572da1e191a9b396ea (diff)
zeromq: removed stray debug code and cleanup
Diffstat (limited to 'gr-zeromq/lib/pull_source_impl.cc')
-rw-r--r--gr-zeromq/lib/pull_source_impl.cc26
1 files changed, 12 insertions, 14 deletions
diff --git a/gr-zeromq/lib/pull_source_impl.cc b/gr-zeromq/lib/pull_source_impl.cc
index b29a056d84..8d90b0ead7 100644
--- a/gr-zeromq/lib/pull_source_impl.cc
+++ b/gr-zeromq/lib/pull_source_impl.cc
@@ -71,22 +71,20 @@ namespace gr {
// If we got a reply, process
if (items[0].revents & ZMQ_POLLIN) {
- // Receive data
- zmq::message_t msg;
- std::cout << "pull before" << std::endl;
- d_socket->recv(&msg);
- std::cout << "pull after" << std::endl;
- // Copy to ouput buffer and return
- if (msg.size() >= d_itemsize*d_vlen*noutput_items) {
- memcpy(out, (void *)msg.data(), d_itemsize*d_vlen*noutput_items);
+ // Receive data
+ zmq::message_t msg;
+ d_socket->recv(&msg);
+ // Copy to ouput buffer and return
+ if (msg.size() >= d_itemsize*d_vlen*noutput_items) {
+ memcpy(out, (void *)msg.data(), d_itemsize*d_vlen*noutput_items);
- return noutput_items;
- }
- else {
- memcpy(out, (void *)msg.data(), msg.size());
+ return noutput_items;
+ }
+ else {
+ memcpy(out, (void *)msg.data(), msg.size());
- return msg.size()/(d_itemsize*d_vlen);
- }
+ return msg.size()/(d_itemsize*d_vlen);
+ }
}
else {
return 0; // FIXME: someday when the scheduler does all the poll/selects