aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-27 15:20:53 -0700
committerJosh Blum <josh@joshknows.com>2010-04-27 15:20:53 -0700
commit04dae4bf6b11b5aad383f95be6a77863a7c2f6ec (patch)
tree5d6bc7d4c22623a8917481da77630688e8ad67bb /host/lib/transport
parentb920557788fc5435915584bec6ab16a97d7c6090 (diff)
downloaduhd-04dae4bf6b11b5aad383f95be6a77863a7c2f6ec.tar.gz
uhd-04dae4bf6b11b5aad383f95be6a77863a7c2f6ec.tar.bz2
uhd-04dae4bf6b11b5aad383f95be6a77863a7c2f6ec.zip
setting size of buffers from device args
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 315ae49d2..09386a60c 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -103,8 +103,8 @@ public:
managed_send_buffer::sptr get_send_buff(void);
//resize
- size_t set_recv_buff_size(size_t num_bytes);
- size_t set_send_buff_size(size_t num_bytes);
+ size_t resize_recv_buff_size(size_t num_bytes);
+ size_t resize_send_buff_size(size_t num_bytes);
private:
boost::asio::ip::udp::socket *_socket;
@@ -157,16 +157,14 @@ managed_send_buffer::sptr udp_zero_copy_impl::get_send_buff(void){
);
}
-//sysctl -w net.core.rmem_max=VALUE
-size_t udp_zero_copy_impl::set_recv_buff_size(size_t num_bytes){
+size_t udp_zero_copy_impl::resize_recv_buff_size(size_t num_bytes){
boost::asio::socket_base::receive_buffer_size option(num_bytes);
_socket->set_option(option);
_socket->get_option(option);
return option.value();
}
-//sysctl -w net.core.wmem_max=VALUE
-size_t udp_zero_copy_impl::set_send_buff_size(size_t num_bytes){
+size_t udp_zero_copy_impl::resize_send_buff_size(size_t num_bytes){
boost::asio::socket_base::send_buffer_size option(num_bytes);
_socket->set_option(option);
_socket->get_option(option);