summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-30 12:22:23 -0700
committerJosh Blum <josh@joshknows.com>2010-04-30 12:22:23 -0700
commitdd8373063684418eb978cdd1a2b0896923ba1d47 (patch)
treecc4503df0f783b5a7027b03a409ad29a3a271f9a /host/include
parent04dae4bf6b11b5aad383f95be6a77863a7c2f6ec (diff)
downloaduhd-dd8373063684418eb978cdd1a2b0896923ba1d47.tar.gz
uhd-dd8373063684418eb978cdd1a2b0896923ba1d47.tar.bz2
uhd-dd8373063684418eb978cdd1a2b0896923ba1d47.zip
made buffer size args part of constructor
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/udp_zero_copy.hpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/host/include/uhd/transport/udp_zero_copy.hpp b/host/include/uhd/transport/udp_zero_copy.hpp
index c74e6d7b7..525606a9f 100644
--- a/host/include/uhd/transport/udp_zero_copy.hpp
+++ b/host/include/uhd/transport/udp_zero_copy.hpp
@@ -50,23 +50,15 @@ public:
*
* \param addr a string representing the destination address
* \param port a string representing the destination port
+ * \param recv_buff_size size in bytes for the recv buffer, 0 for automatic
+ * \param send_buff_size size in bytes for the send buffer, 0 for automatic
*/
- static sptr make(const std::string &addr, const std::string &port);
-
- /*!
- * Resize 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 resize_recv_buff_size(size_t num_bytes) = 0;
-
- /*!
- * Resize 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 resize_send_buff_size(size_t num_bytes) = 0;
-
+ static sptr make(
+ const std::string &addr,
+ const std::string &port,
+ size_t recv_buff_size = 0,
+ size_t send_buff_size = 0
+ );
};
}} //namespace