]> Sergey Matveev's repositories - btrtrc.git/blob - client-stats.go
Include count of peer conns in status
[btrtrc.git] / client-stats.go
1 package torrent
2
3 type ClientStats struct {
4         ConnStats
5
6         // Ongoing outgoing dial attempts. There may be more than one dial going on per peer address due
7         // to hole-punch connect requests. The total may not match the sum of attempts for all Torrents
8         // if a Torrent is dropped while there are outstanding dials.
9         ActiveHalfOpenAttempts int
10
11         // Number of unique peer addresses that were dialed after receiving a holepunch connect message,
12         // that have previously been undialable without any hole-punching attempts.
13         NumPeersUndialableWithoutHolepunchDialedAfterHolepunchConnect int
14         // Number of unique peer addresses that were successfully dialed and connected after a holepunch
15         // connect message and previously failing to connect without holepunching.
16         NumPeersDialableOnlyAfterHolepunch int
17 }