
Functions | |
| void | example007_file_transfer_stats_callback (const fc::GlobalStateAndStats &stats, void *ptr) |
| int | example007 () |
| 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 |
Use the callback hook fc::Control::setStatsCallback() to get a statistics callback every second during a transfer.
| void example007_file_transfer_stats_callback | ( | const fc::GlobalStateAndStats & | stats, |
| void * | ptr | ||
| ) |
References fc::TransferStats::getStr(), and stats.


| int example007 | ( | ) |
References fc::Control::connect(), fc::Exception::display(), fc::Control::download(), example007_file_transfer_stats_callback(), fc::k10_Mbps, password, serverIP, fc::Options::setBandwidth(), fc::Options::setOverwrite(), fc::Control::setStatsCallback(), fc::Options::setTransferResume(), and username.


| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| const std::string username = TEST_USER |
| const std::string password = TEST_PASS |
| const std::string serverIP = TEST_SERVER |