MCPcopy Create free account
hub / github.com/arvidn/libtorrent / update_socket_buffer_size

Method update_socket_buffer_size

src/session_impl.cpp:6586–6611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6584 }
6585
6586 void session_impl::update_socket_buffer_size()
6587 {
6588 for (auto const& l : m_listen_sockets)
6589 {
6590 error_code ec;
6591 set_socket_buffer_size(l->udp_sock->sock, m_settings, ec);
6592#ifndef TORRENT_DISABLE_LOGGING
6593 if (ec && should_log())
6594 {
6595 session_log("listen socket buffer size [ udp %s:%d ] %s"
6596 , l->udp_sock->sock.local_endpoint().address().to_string().c_str()
6597 , l->udp_sock->sock.local_port(), print_error(ec).c_str());
6598 }
6599#endif
6600 ec.clear();
6601 set_socket_buffer_size(*l->sock, m_settings, ec);
6602#ifndef TORRENT_DISABLE_LOGGING
6603 if (ec && should_log())
6604 {
6605 session_log("listen socket buffer size [ tcp %s:%d] %s"
6606 , l->sock->local_endpoint().address().to_string().c_str()
6607 , l->sock->local_endpoint().port(), print_error(ec).c_str());
6608 }
6609#endif
6610 }
6611 }
6612
6613 void session_impl::update_dht_announce_interval()
6614 {

Callers

nothing calls this directly

Calls 7

set_socket_buffer_sizeFunction · 0.85
print_errorFunction · 0.70
to_stringMethod · 0.45
addressMethod · 0.45
local_endpointMethod · 0.45
clearMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected