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

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
 

Detailed Description

Use the callback hook fc::Control::setStatsCallback() to get a statistics callback every second during a transfer.

Function Documentation

◆ example007_file_transfer_stats_callback()

void example007_file_transfer_stats_callback ( const fc::GlobalStateAndStats stats,
void *  ptr 
)

References fc::TransferStats::getStr(), and stats.

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

◆ example007()

◆ main()

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

References example007().

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