summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/udp_zero_copy.hpp15
-rw-r--r--host/include/uhd/usrp/usrp2.hpp4
2 files changed, 19 insertions, 0 deletions
diff --git a/host/include/uhd/transport/udp_zero_copy.hpp b/host/include/uhd/transport/udp_zero_copy.hpp
index fd1cec46e..117f24b2f 100644
--- a/host/include/uhd/transport/udp_zero_copy.hpp
+++ b/host/include/uhd/transport/udp_zero_copy.hpp
@@ -52,6 +52,21 @@ public:
* \param port a string representing the destination port
*/
static sptr make(const std::string &addr, const std::string &port);
+
+ /*!
+ * The the rx buffer size on the socket.
+ * \param num_bytes the new size for the socket buffer
+ * \return the actual number of bytes allowed by the OS
+ */
+ virtual size_t set_recv_buff_size(size_t num_bytes) = 0;
+
+ /*!
+ * The the tx buffer size on the socket.
+ * \param num_bytes the new size for the socket buffer
+ * \return the actual number of bytes allowed by the OS
+ */
+ virtual size_t set_send_buff_size(size_t num_bytes) = 0;
+
};
}} //namespace
diff --git a/host/include/uhd/usrp/usrp2.hpp b/host/include/uhd/usrp/usrp2.hpp
index 613b40ae3..7387e5dd4 100644
--- a/host/include/uhd/usrp/usrp2.hpp
+++ b/host/include/uhd/usrp/usrp2.hpp
@@ -35,6 +35,10 @@ public:
* hint["addr"] = address, where address is a resolvable address
* or ip address, which may or may not be a broadcast address.
*
+ * Other optional device address keys:
+ * recv_buff_size: resizes the recv buffer on the data socket
+ * send_buff_size: resizes the send buffer on the data socket
+ *
* \param hint a device addr with the usrp2 address filled in
* \return a vector of device addresses for all usrp2s found
*/