共用方式為


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

從網際網路對等端傳輸的位元組數目。

bytesFromHttp

從 HTTP 傳輸的位元組數目。

bytesFromDoinc

僅供內部使用。

bytesToLanPeers

傳輸至 LAN 對等互連的位元組數目。

bytesToGroupPeers

傳輸至群組對等的位元組數目。

bytesToInternetPeers

傳輸至網際網路對等的位元組數目。

HTTPConnectionCount

HTTP 連線計數。

doincConnectionCount

僅供內部使用。

lanConnectionCount

LAN 連線計數。

groupConnectionCount

群組連線計數。

internetConnectionCount

網際網路連線計數。

downloadDuration

以毫秒為單位的檔案傳輸持續時間。

downloadMode

使用的下載模式,請參閱 DownloadMode

status

檔案傳輸的狀態,請參閱 SwarmStatus

isBackground

如果這是背景傳輸,則為 True。

規格需求

需求
最低支援的用戶端
Windows 10 1709 版 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 版本 1709 [僅限傳統型應用程式]
標頭
Deliveryoptimization.h