通过


DOSwarmStats 结构

包含用于下载和上传文件的统计信息的字段。

语法

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;

成员

fileId

使用 AddFileWithRanges 调用指定的以 Null 结尾的字符串。

sourceURL

包含服务器上文件名称的 null 终止字符串 (例如,https://< server>/<path>/file.ext) 。

fileSize

文件的大小(以字节为单位)。

totalBytesDownloaded

传输的总字节数。

bytesFromLanPeers

从 LAN 对等方传输的字节数。

bytesFromGroupPeers

从组对等方传输的字节数。

bytesFromInternetPeers

从 Internet 对等方传输的字节数。

bytesFromHttp

从 http 传输的字节数。

bytesFromDoinc

仅限内部使用。

bytesToLanPeers

传输到 LAN 对等方的字节数。

bytesToGroupPeers

传输到组对等方的字节数。

bytesToInternetPeers

传输到 Internet 对等方的字节数。

httpConnectionCount

http 连接计数。

doincConnectionCount

仅限内部使用。

lanConnectionCount

LAN 连接计数。

groupConnectionCount

组连接计数。

internetConnectionCount

Internet 连接计数。

downloadDuration

文件传输的持续时间(以毫秒为单位)。

downloadMode

使用的下载模式,请参阅 DownloadMode

status

文件传输的状态,请参阅 SwarmStatus

isBackground

如果这是后台传输,则为 True。

要求

要求
最低受支持的客户端
Windows 10版本 1709 [仅限桌面应用]
最低受支持的服务器
Windows Server 版本 1709 [仅限桌面应用]
标头
Deliveryoptimization.h