Provide tracker peers count via TrackerEntry

Don't expose additional accessor in Torrent interface.
This commit is contained in:
Vladimir Golovnev (Glassez) 2021-04-19 09:40:15 +03:00
parent 62a6c725d6
commit 75e0990eb3
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
6 changed files with 22 additions and 29 deletions

View file

@ -49,6 +49,7 @@ namespace BitTorrent
int protocolVersion = 1;
Status status = NotContacted;
int numPeers = -1;
int numSeeds = -1;
int numLeeches = -1;
int numDownloaded = -1;
@ -62,6 +63,7 @@ namespace BitTorrent
// Deprecated fields
Status status = NotContacted;
int numPeers = -1;
int numSeeds = -1;
int numLeeches = -1;
int numDownloaded = -1;