Re: [libtorrent] how to set libtorrent to transfer data using TCP
Brought to you by:
arvidn
From: Arvid N. <arv...@gm...> - 2017-10-12 07:42:36
|
On Thu, Oct 12, 2017 at 7:23 AM, linxs <li...@12...> wrote: > Hello everyone, > > libtorrent use u2p to transfer data between peers. > how to set it to use TCP to transfer data? > you mean uTP, right? The default transport protocol for bittorrent. you can disable it in the settings, to force using TCP. i.e. disable incoming and outgoing uTP and enable TCP. http://libtorrent.org/reference-Settings.html#enable_outgoing_utp even I have set libtorrent to prefer tcp: settings.set_int(settings_pack::mixed_mode_algorithm, > settings_pack::prefer_tcp); > prefer_tcp affects the congestion control for mixing TCP and uTP (as the documentation states). http://libtorrent.org/reference-Settings.html#mixed_mode_algorithm > but it use i2p yet. > i2p is unrelated to all of the above, other than I believe it always runs over TCP. But that's a separate setting. -- Arvid Norberg |