diff options
author | Eric Blossom | 2010-09-23 23:21:56 -0700 |
---|---|---|
committer | Eric Blossom | 2010-09-27 14:56:43 -0700 |
commit | f0e615a06a041fda52f812fc01b85363ef1c9e0f (patch) | |
tree | b059b3de8d966ea9ff1b8f49df02e558018c48ec /vrt/lib/socket_rx_buffer.h | |
parent | ed21ccff0b15ebd20e32fa6f026d65276b83e20c (diff) | |
download | gnuradio-f0e615a06a041fda52f812fc01b85363ef1c9e0f.tar.gz gnuradio-f0e615a06a041fda52f812fc01b85363ef1c9e0f.tar.bz2 gnuradio-f0e615a06a041fda52f812fc01b85363ef1c9e0f.zip |
Remove packet ring stuff. It doesn't work with UDP.
Diffstat (limited to 'vrt/lib/socket_rx_buffer.h')
-rw-r--r-- | vrt/lib/socket_rx_buffer.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/vrt/lib/socket_rx_buffer.h b/vrt/lib/socket_rx_buffer.h index 053c30c12..36c18c1a5 100644 --- a/vrt/lib/socket_rx_buffer.h +++ b/vrt/lib/socket_rx_buffer.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2008,2009 Free Software Foundation, Inc. + * Copyright 2008,2009,2010 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -41,28 +41,9 @@ namespace vrt { { int d_fd; // socket file descriptor - bool d_using_tpring; // using kernel mapped packet ring - size_t d_buflen; // length of our buffer - uint8_t *d_buf; // packet ring - unsigned int d_frame_nr; // max frames on ring - size_t d_frame_size; // frame storage size - unsigned int d_head; // pointer to next frame - std::vector<uint8_t *> d_ring; // pointers into buffer - - bool frame_available(); - - void inc_head() - { - if (d_head + 1 >= d_frame_nr) - d_head = 0; - else - d_head = d_head + 1; - } - - bool open(); + bool open(size_t buflen); bool close(); - bool try_packet_ring(); public: @@ -110,11 +91,6 @@ namespace vrt { * \returns EB_ERROR if there was an unrecoverable error. */ result rx_frames(data_handler *f, int timeout=-1); - - /* - * \brief Returns maximum possible number of frames in buffer - */ - unsigned int max_frames() const { return d_using_tpring ? d_frame_nr : 0; } }; }; // namespace vrt |