diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-01 17:51:26 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-01 17:51:26 -0700 |
commit | 212159ca3bc00d233464cd6f9f454e5ac6e08f88 (patch) | |
tree | 26ba4df4c4e692face9145c6cc1e77fff8056076 /host/lib/transport/vrt_packet_handler_state.hpp | |
parent | f78cae4911148470f1b5fbf2ff8ea795250419a1 (diff) | |
download | uhd-212159ca3bc00d233464cd6f9f454e5ac6e08f88.tar.gz uhd-212159ca3bc00d233464cd6f9f454e5ac6e08f88.tar.bz2 uhd-212159ca3bc00d233464cd6f9f454e5ac6e08f88.zip |
Implemented pirate thread, moved io impl details into io impl cpp file. Fixed bug in bounded buffer push with pop on full.
Diffstat (limited to 'host/lib/transport/vrt_packet_handler_state.hpp')
-rw-r--r-- | host/lib/transport/vrt_packet_handler_state.hpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/host/lib/transport/vrt_packet_handler_state.hpp b/host/lib/transport/vrt_packet_handler_state.hpp deleted file mode 100644 index 2320a3b8e..000000000 --- a/host/lib/transport/vrt_packet_handler_state.hpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright 2010 Ettus Research LLC -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// - -#ifndef INCLUDED_LIBUHD_TRANSPORT_VRT_PACKET_HANDLER_STATE_HPP -#define INCLUDED_LIBUHD_TRANSPORT_VRT_PACKET_HANDLER_STATE_HPP - -#include <uhd/config.hpp> -#include <uhd/transport/zero_copy.hpp> -#include <boost/asio/buffer.hpp> - -namespace vrt_packet_handler{ - - struct recv_state{ - //init the expected seq number - size_t next_packet_seq; - - //state variables to handle fragments - uhd::transport::managed_recv_buffer::sptr managed_buff; - boost::asio::const_buffer copy_buff; - size_t fragment_offset_in_samps; - - recv_state(void){ - //first expected seq is zero - next_packet_seq = 0; - - //initially empty copy buffer - copy_buff = boost::asio::buffer("", 0); - } - }; - - struct send_state{ - //init the expected seq number - size_t next_packet_seq; - - send_state(void){ - next_packet_seq = 0; - } - }; - -} //namespace vrt_packet_handler - -#endif /* INCLUDED_LIBUHD_TRANSPORT_VRT_PACKET_HANDLER_STATE_HPP */ |