summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-27 09:42:36 -0700
committerJosh Blum <josh@joshknows.com>2010-04-27 09:42:36 -0700
commitb920557788fc5435915584bec6ab16a97d7c6090 (patch)
tree36ad5dc6058cd7164f11f47430ba6d0ace84e6ab /host/include
parent8497eb2ac016f72e2b9a9028e5126bc73f5b0c9a (diff)
downloaduhd-b920557788fc5435915584bec6ab16a97d7c6090.tar.gz
uhd-b920557788fc5435915584bec6ab16a97d7c6090.tar.bz2
uhd-b920557788fc5435915584bec6ab16a97d7c6090.zip
work on controlling the socket buffer sizes from the front end api
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
*/