summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-30 12:58:32 -0700
committerJosh Blum <josh@joshknows.com>2010-04-30 12:58:32 -0700
commitc7df3878779cf461cef01d910e6c52c7ac3e1105 (patch)
treef7474fb567304613c3b3f5daa11b641dbd16a2d6 /host/include
parent29ea5f89b6f52dd5ad7fb0173ef5699f9c5f4ebf (diff)
parentdd8373063684418eb978cdd1a2b0896923ba1d47 (diff)
downloaduhd-c7df3878779cf461cef01d910e6c52c7ac3e1105.tar.gz
uhd-c7df3878779cf461cef01d910e6c52c7ac3e1105.tar.bz2
uhd-c7df3878779cf461cef01d910e6c52c7ac3e1105.zip
Merge branch 'socket' of git@ettus.sourcerepo.com:ettus/uhdpriv
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