FC++  v0.7.1-1067
FileCatalyst Fast File Transfers - C++ Library
fc::GlobalStats Class Reference

GlobalStats is used to track some summary statistics during file transfers. More...

#include <FCStateAndStats.hpp>

Collaboration diagram for fc::GlobalStats:

Public Member Functions

 GlobalStats (void)
 
GlobalStatsclear (void)
 

Public Attributes

uint64_t totalNumberOfFilesSent
 
uint64_t totalNumberOfFilesReceived
 
uint64_t remainingNumberOfFilesToSend
 
uint64_t remainingNumberOfFilesToReceive
 
uint64_t totalNumberOfPayloadBytesTransferred
 
uint64_t totalNumberOfPlayloadBytesSkipped
 Number of bytes that were skipped due to auto-resume of a previous partial file transfers. More...
 
uint64_t remainingNumberOfPayloadBytesToTransfer
 
uint64_t bitsPerSecondAverageTransferRate
 
std::chrono::high_resolution_clock::time_point timeStarted
 absolute time More...
 
std::chrono::high_resolution_clock::duration timeRemaining
 relative time, from now More...
 

Detailed Description

GlobalStats is used to track some summary statistics during file transfers.

Warning
There are no thread locks to the global stats. Some of these values will periodically update during active file transfers.

If access to the statistics is needed during the transfer (versus after the transfer has finished) then please see the statistics callback function fc::Control::setStatsCallback().

Constructor & Destructor Documentation

fc::GlobalStats::GlobalStats ( void  )

References clear().

Here is the call graph for this function:

Member Function Documentation

Member Data Documentation

uint64_t fc::GlobalStats::totalNumberOfFilesSent
uint64_t fc::GlobalStats::totalNumberOfFilesReceived
uint64_t fc::GlobalStats::remainingNumberOfFilesToSend
uint64_t fc::GlobalStats::remainingNumberOfFilesToReceive
uint64_t fc::GlobalStats::totalNumberOfPayloadBytesTransferred
uint64_t fc::GlobalStats::totalNumberOfPlayloadBytesSkipped

Number of bytes that were skipped due to auto-resume of a previous partial file transfers.

Since
v0.7.1-974, September 2015.
uint64_t fc::GlobalStats::remainingNumberOfPayloadBytesToTransfer
uint64_t fc::GlobalStats::bitsPerSecondAverageTransferRate
std::chrono::high_resolution_clock::time_point fc::GlobalStats::timeStarted

absolute time

std::chrono::high_resolution_clock::duration fc::GlobalStats::timeRemaining

relative time, from now


The documentation for this class was generated from the following files: