VirtualPacketConn: New Stats field maintained by caller. This allows insight into active transfers.

New FileTransferStats and BlockTransferStats structures.
This commit is contained in:
Kleissner
2022-03-16 23:52:55 +01:00
parent 51336263f5
commit cb1441c97a
8 changed files with 88 additions and 35 deletions

View File

@@ -87,3 +87,8 @@ func (backend *Backend) firewallDetectIndicatorFile() {
os.Remove(firewallIndicatorFile)
}
}
// List of all lite sessions
func (backend *Backend) LiteSessions() (sessions []*protocol.LiteID) {
return backend.networks.LiteRouter.All()
}