FC++  v0.9.0-9e9b65
FileCatalyst Fast File Transfers - C++ Library
example002.cpp File Reference
#include "FileCatalyst.hpp"
#include <iostream>
Include dependency graph for example002.cpp:

Functions

int example002 ()
 
int main (int argc, char *argv[])
 

Variables

const std::string username = TEST_USER
 
const std::string password = TEST_PASS
 
const std::string serverIP = TEST_SERVER
 

Detailed Description

Download a single file with fc::Control::download() and uses fc::Control::getMostRecentFileStats() to display a large number of statistics on the file itself as well as the UDP transfer.

Function Documentation

◆ example002()

int example002 ( )

References fc::TransferStats::ackPacketsReceived, fc::TransferStats::bitsPerSecondAverageTransferRate, fc::TransferStats::bitsPerSecondImmediateTransferRate, fc::TransferStats::blocksCompleted, fc::TransferStats::blockSize, fc::TransferStats::blocksRemaining, fc::Control::connect(), fc::TransferStats::dataPacketsReceived, fc::Exception::display(), fc::Control::download(), fc::TransferStats::duplicatePacketDropped, fc::TransferStats::echoPacketsReceived, fc::TransferStats::encryptionThreadStarved, fc::TransferStats::fileReaderStarved, fc::formatBytesIEC(), fc::formatBytesSI(), fc::formatTimeDuration(), fc::formatTimeDuration2(), fc::formatTimeRecent(), fc::formatTimestamp2(), fc::formatTransferRate(), fc::formatTransferStatsEState(), fc::Name::full(), fc::Control::getMostRecentFileStats(), fc::kFastEthernet, fc::kUdp, fc::TransferStats::localFilename, fc::TransferStats::localMd5, fc::TransferStats::md5, fc::TransferStats::metricsPacketsReceived, fc::TransferStats::metricsPacketsSent, fc::TransferStats::multipleBlocksInAckNackState, fc::TransferStats::networkWriterStarved, fc::TransferStats::onTheFlyMd5Received, fc::TransferStats::packetLossEvent, fc::TransferStats::packetsReceived, fc::TransferStats::packetsSent, password, fc::TransferStats::payloadBytesExpected, fc::TransferStats::payloadBytesSkipped, fc::TransferStats::payloadBytesTransferred, fc::TransferStats::remoteFilename, fc::TransferStats::remoteMd5, fc::TransferStats::requestRetransmit, serverIP, fc::Options::setBandwidth(), fc::Options::setFtpServer(), fc::Options::setMd5Verification(), fc::Options::setMode(), fc::Options::setOverwrite(), fc::Options::setTransferResume(), fc::Options::setUsernameAndPassword(), stats, fc::TransferStats::target_local_filename(), fc::TransferStats::target_remote_filename(), fc::TransferStats::timeRemaining, fc::TransferStats::timeTransferBegan, fc::TransferStats::timeTransferFinished, fc::TransferStats::transfer, fc::TransferStats::type, fc::TransferStats::unitSize, and username.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

References example002().

Here is the call graph for this function:

Variable Documentation

◆ username

const std::string username = TEST_USER

◆ password

const std::string password = TEST_PASS

◆ serverIP

const std::string serverIP = TEST_SERVER