DOSwarmStats structure
Contains fields for download and upload statistics for a file.
Syntax
typedef struct _DOSwarmStats {
LPWSTR fileId;
LPWSTR sourceURL;
UINT64 fileSize;
UINT64 totalBytesDownloaded;
UINT64 bytesFromLanPeers;
UINT64 bytesFromGroupPeers;
UINT64 bytesFromInternetPeers;
UINT64 bytesFromHttp;
UINT64 bytesFromDoinc;
UINT64 bytesToLanPeers;
UINT64 bytesToGroupPeers;
UINT64 bytesToInternetPeers;
UINT httpConnectionCount;
UINT doincConnectionCount;
UINT lanConnectionCount;
UINT groupConnectionCount;
UINT internetConnectionCount;
UINT downloadDuration;
DownloadMode downloadMode;
SwarmStatus status;
BOOL isBackground;
} DOSwarmStats;
Members
-
fileId
-
Null-terminated string that was specified with the AddFileWithRanges call.
-
sourceURL
-
Null-terminated string that contains the name of the file on the server (for example, https://<server>/<path>/file.ext).
-
fileSize
-
Size of the file in bytes.
-
totalBytesDownloaded
-
Total number of bytes transferred.
-
bytesFromLanPeers
-
Number of bytes transferred from LAN peers.
-
bytesFromGroupPeers
-
Number of bytes transferred from group peers.
-
bytesFromInternetPeers
-
Number of bytes transferred from Internet peers.
-
bytesFromHttp
-
Number of bytes transferred from http.
-
bytesFromDoinc
-
For internal use only.
-
bytesToLanPeers
-
Number of bytes transferred to LAN peers.
-
bytesToGroupPeers
-
Number of bytes transferred to group peers.
-
bytesToInternetPeers
-
Number of bytes transferred to Internet peers.
-
httpConnectionCount
-
Count of http connections.
-
doincConnectionCount
-
For internal use only.
-
lanConnectionCount
-
Count of LAN connections.
-
groupConnectionCount
-
Count of group connections.
-
internetConnectionCount
-
Count of Internet connections.
-
downloadDuration
-
Duration of the file transfer in milliseconds.
-
downloadMode
-
The download mode used, see DownloadMode.
-
status
-
The status of a file transfer, see SwarmStatus.
-
isBackground
-
True, if this is a background transfer.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 10, version 1709 [desktop apps only] |
Minimum supported server |
Windows Server, version 1709 [desktop apps only] |
Header |
|