diff --git a/docs/manual.rst b/docs/manual.rst index 48e4974cd..1bb806118 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -959,6 +959,8 @@ called, the udp port will be rebound to the new port, if it was configured to us the same port as the tcp socket, and if the listen_on call failed to bind to the same port that the udp uses. +If you want the OS to pick a port for you, pass in 0 as both first and second. + The reason why it's a good idea to run the DHT and the bittorrent socket on the same port is because that is an assumption that may be used to increase performance. One way to accelerate the connecting of peers on windows may be to first ping all peers diff --git a/include/libtorrent/aux_/session_impl.hpp b/include/libtorrent/aux_/session_impl.hpp index c4bed9cec..54bf0b028 100644 --- a/include/libtorrent/aux_/session_impl.hpp +++ b/include/libtorrent/aux_/session_impl.hpp @@ -354,9 +354,6 @@ namespace libtorrent #endif // TORRENT_USE_WSTRING #endif // TORRENT_DISABLE_GEO_IP - void load_state(entry const& ses_state); - entry state() const; - void start_lsd(); void start_natpmp(natpmp* n); void start_upnp(upnp* u);