Page 1 of 1

Peer Management

Posted: Sat May 24, 2014 11:03 am
by TraxXavier
Hi

I'm very interested in understanding how the peer management works,
that is how the client choses who to upload to,
how it chooses what idle connections to drop,
and how it decides to what clients reopen a connection?

What I also would like to know is how the client decides how many upload slots to open, if there is no preset upload limit form the user?

I know that its all in the source but that just to much code to dig through it for me, also for me is the boost style code of libTorrent very confusing.

I would be very thankful for any detailed responses.

Re: Peer Management

Posted: Sat May 24, 2014 1:46 pm
by ciaobaby
http://sourceforge.net/p/libtorrent/mai ... t-discuss/ would be the place to get libtorrent specific questions answered, if they are not already.

Re: Peer Management

Posted: Sat May 24, 2014 3:20 pm
by sledgehammer_999
You can read the online libtorrent-docs. qbt in most cases uses the default values.
http://libtorrent.org/manual.html

Re: Peer Management

Posted: Sun May 25, 2014 11:27 am
by TraxXavier
Well as i said i was rather hoping for some explicit explanations...
as it stands i can just as good try to read the source directly...

Re: Peer Management

Posted: Sun May 25, 2014 6:25 pm
by Nemo
You can get alot of information from the links that are given already. Not very explicit but things are getting explained if you search through it. Also as ciao mentioned qBittorrent is using libtorrent as base so maybe you can try to ask there about it.

Just wondering.. Why you need to know all this?

Re: Peer Management

Posted: Tue May 27, 2014 7:40 pm
by TraxXavier
Is there a forum for libtorrent? or do i need to use the linked mailing list?
the linked docs explain how the interface works to the lib, but as far as I see it does not explain how the lib works under the hood.

I found the qt sample: http://qt-project.org/doc/qt-4.8/network-torrent.html
and noticed that is works much worst than utorrent or qbittorent, and I wanted to know if that could be simply fixed, and foremost learn a few things in the process.

Trax