From 0b609f776494ecff50c7a2a4d9880d3186fe2421 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 29 May 2010 00:50:29 -0700 Subject: added frame count call to zero-copy iface, tweaks for udp asio impl --- host/include/uhd/transport/zero_copy.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp index 2efabaccf..d6eb89a91 100644 --- a/host/include/uhd/transport/zero_copy.hpp +++ b/host/include/uhd/transport/zero_copy.hpp @@ -123,10 +123,29 @@ namespace uhd{ namespace transport{ */ virtual managed_recv_buffer::sptr get_recv_buff(void) = 0; + /*! + * Get the maximum number of receive frames: + * The maximum number of valid managed recv buffers, + * or the maximum number of frames in the ring buffer, + * depending upon the underlying implementation. + * \return number of frames + */ + virtual size_t get_num_recv_frames(void) const = 0; + /*! * Get a new send buffer from this transport object. */ virtual managed_send_buffer::sptr get_send_buff(void) = 0; + + /*! + * Get the maximum number of send frames: + * The maximum number of valid managed send buffers, + * or the maximum number of frames in the ring buffer, + * depending upon the underlying implementation. + * \return number of frames + */ + virtual size_t get_num_send_frames(void) const = 0; + }; /*! -- cgit v1.2.3