summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-29 00:50:29 -0700
committerJosh Blum <josh@joshknows.com>2010-05-29 00:50:29 -0700
commit0b609f776494ecff50c7a2a4d9880d3186fe2421 (patch)
treeb284568d62f4fcd216540c5907941bf5f0d510f9 /host/include
parent8c0759df03520f010203fdeb3979f82fc41b72f7 (diff)
downloaduhd-0b609f776494ecff50c7a2a4d9880d3186fe2421.tar.gz
uhd-0b609f776494ecff50c7a2a4d9880d3186fe2421.tar.bz2
uhd-0b609f776494ecff50c7a2a4d9880d3186fe2421.zip
added frame count call to zero-copy iface, tweaks for udp asio impl
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/zero_copy.hpp19
1 files changed, 19 insertions, 0 deletions
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
@@ -124,9 +124,28 @@ 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;
+
};
/*!