Discussion:
[libtorrent] Num peers
Héctor Contreras
2016-09-04 16:29:46 UTC
Permalink
Hello, I have a little doubt
What is the difference between these two variables?

session_status sess_stat = ses.status ();
sess_stat.num_peers

and

torrent_status s;
s = h.status ()
s.num_peers

In the output shown different results
------------------------------------------------------------------------------
Arvid Norberg
2016-09-04 20:44:40 UTC
Permalink
On Sun, Sep 4, 2016 at 12:29 PM, Héctor Contreras <
Post by Héctor Contreras
Hello, I have a little doubt
What is the difference between these two variables?
session_status sess_stat = ses.status ();
sess_stat.num_peers
This is the total number of peers in the session. Incoming peer connections
are not assigned to a torrent until they complete the handshake (where they
send the info-hash). I believe this count includes such peers.
Post by Héctor Contreras
and
torrent_status s;
s = h.status ()
s.num_peers
This is the number of peers associated with that specific torrent.
--
Arvid Norberg
------------------------------------------------------------------------------
Héctor Contreras
2016-09-05 19:25:51 UTC
Permalink
I understand , thanks for the reply
good job with the client_test
Post by Arvid Norberg
On Sun, Sep 4, 2016 at 12:29 PM, Héctor Contreras <
Post by Héctor Contreras
Hello, I have a little doubt
What is the difference between these two variables?
session_status sess_stat = ses.status ();
sess_stat.num_peers
This is the total number of peers in the session. Incoming peer connections
are not assigned to a torrent until they complete the handshake (where they
send the info-hash). I believe this count includes such peers.
Post by Héctor Contreras
and
torrent_status s;
s = h.status ()
s.num_peers
This is the number of peers associated with that specific torrent.
--
Arvid Norberg
------------------------------------------------------------
------------------
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Loading...