Struttura DOSwarmStats

Contiene campi per scaricare e caricare statistiche per un file.

Sintassi

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

Stringa con terminazione null specificata con la chiamata AddFileWithRanges .

sourceURL

Stringa con terminazione null contenente il nome del file nel server, ad esempio https://< server>/path>/<file.ext.

Dimensione

Dimensioni del file, in byte.

totalBytesDownloaded

Numero totale di byte trasferiti.

byteFromLanPeers

Numero di byte trasferiti da peer LAN.

byteFromGroupPeers

Numero di byte trasferiti da peer di gruppo.

byteFromInternetPeers

Numero di byte trasferiti da peer Internet.

byteFromHttp

Numero di byte trasferiti da http.

byteFromDoinc

Solo per uso interno.

ByteToLanPeers

Numero di byte trasferiti ai peer LAN.

byteToGroupPeers

Numero di byte trasferiti ai peer di gruppo.

byteToInternetPeers

Numero di byte trasferiti ai peer Internet.

httpConnectionCount

Numero di connessioni http.

doincConnectionCount

Solo per uso interno.

lanConnectionCount

Numero di connessioni LAN.

groupConnectionCount

Numero di connessioni di gruppo.

InternetConnectionCount

Conteggio delle connessioni Internet.

downloadDuration

Durata del trasferimento del file in millisecondi.

downloadMode

La modalità di download usata, vedere DownloadMode.

Stato

Lo stato di un trasferimento di file, vedere SwarmStatus.

isBackground

True, se si tratta di un trasferimento in background.

Requisiti

Requisito Valore
Client minimo supportato
Windows 10 versione 1709 [solo app desktop]
Server minimo supportato
Windows Server, versione 1709 [solo app desktop]
Intestazione
Deliveryoptimization.h