FC++  v0.9.0-9e9b65
FileCatalyst Fast File Transfers - C++ Library
doc/01_doxygen.dox File Reference
fc::Logging::EType::kMinimal
@ kMinimal
Same as EType::kException.
fc::GlobalStateAndStats::kUnknown
@ kUnknown
Definition: FCStateAndStats.hpp:121
fc::to_time_t
time_t to_time_t(const std::chrono::high_resolution_clock::time_point &tp)
Convenience function to convert time_point objects to traditional time_t values (seconds since 1970-0...
Definition: FCTransferStats.cpp:285
fc::k10_Gbps
@ k10_Gbps
10000000000 bps (this value requires a 64-bit integer)
Definition: FCOptions.hpp:162
fc::Exception::ftpReplyText
std::string ftpReplyText
FTP server raw text reply.
Definition: FCException.hpp:168
fc::k56_Kbps
@ k56_Kbps
56000 bps
Definition: FCOptions.hpp:111
fc::Logging::EType::kInvalid
@ kInvalid
fc::k274_176_Mbps
@ k274_176_Mbps
274176000 bps
Definition: FCOptions.hpp:144
modification
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without modification
Definition: 03_licence.txt:12
fc::Control::makeDirectory
std::string makeDirectory(const fc::Remote &directory)
Create a new directory on the FTP server.
Definition: FCControl.cpp:334
fc::Name::clearCache
virtual Name & clearCache()
Clear the mutable cache items.
Definition: FCPath.cpp:334
fc::Control::prepareSingleFile
Control & prepareSingleFile(const fc::Remote &remote)
Queue a single file for transfer.
Definition: FCControl.cpp:399
fc::kOC1
@ kOC1
OC-1, 51.84 Mbps.
Definition: FCOptions.hpp:193
fc::Control::getMap
fc::StrMap getMap() const
Get a map of all current settings and values. Used mostly for debug purpose.
Definition: FCControl.cpp:959
applications
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license this restriction and the following must be included in all copies of the in whole or in and all derivative works of the unless such copies or derivative works are solely in the form of machine executable object code generated by a source language processor including commercial applications
Definition: 03_licence.txt:47
fc::SummaryLog::getLogFilename
std::string getLogFilename()
Get the name of the file used to record a summary of what FC++ runs durring a session.
Definition: FCSummaryLog.cpp:16
fc::kApiIos
@ kApiIos
14 C++ API on iPhone/iOS
Definition: FCOptions.hpp:42
fc::kInvalidTransferMode
@ kInvalidTransferMode
Definition: FCOptions.hpp:48
fc::k232WillLogoutWhenTransferCompletes
@ k232WillLogoutWhenTransferCompletes
Definition: FCUtils.hpp:89
fc::k155_52_Mbps
@ k155_52_Mbps
155520000 bps
Definition: FCOptions.hpp:143
fc::Control::getDirectoryListing
std::string getDirectoryListing(const fc::Remote &directory=fc::Remote(""))
Get a directory listing from the FTP server.
Definition: FCControl.cpp:295
fc::TransferStats::localMd5
std::string localMd5
May not be set if MD5 is disabled.
Definition: FCTransferStats.hpp:105
fc::Logging::EType::kSummary
@ kSummary
Summary of the FTP session is logged.
fc::k640_Kbps
@ k640_Kbps
640000 bps
Definition: FCOptions.hpp:118
fc::kT4
@ kT4
T4, 274.18 Mbps.
Definition: FCOptions.hpp:190
fc::Options::setMode
virtual Options & setMode(const fc::ETransferMode tm=fc::kUdp, const fc::EConnectionMode cm=fc::kPassive)
Set the FTP mode.
Definition: FCOptions.cpp:356
fc::EClientIdMajor
EClientIdMajor
Definition: FCOptions.hpp:26
FCLogging.hpp
fc::kDS3
@ kDS3
DS-3, 44.74 Mbps.
Definition: FCOptions.hpp:183
fc::StatisticsCallback
void(* StatisticsCallback)(const fc::GlobalStateAndStats &stats, void *ptr)
Allow a single callback to be specified when the statistics are updated.
Definition: FCStateAndStats.hpp:186
fc::TransferStats::kPending
@ kPending
TransferStats::transfer file is scheduled for transfer, but transfer has not yet started; see fc::Con...
Definition: FCTransferStats.hpp:59
fc::Control::upload
Control & upload()
Immediately upload all files that have been queued for transfer.
Definition: FCControl.cpp:607
fc::kInvalid
@ kInvalid
Definition: FCUtils.hpp:128
fc::GlobalStateAndStats::stats
GlobalStats stats
Global statistics.
Definition: FCStateAndStats.hpp:133
fc::GlobalStats::totalNumberOfPayloadBytesTransferred
uint64_t totalNumberOfPayloadBytesTransferred
The total number of bytes that have been uploaded or downloaded.
Definition: FCStateAndStats.hpp:69
fc::k80211
@ k80211
802.11, 2 Mbps
Definition: FCOptions.hpp:219
fc::k1G
@ k1G
1G, 1200 bps
Definition: FCOptions.hpp:228
example005
int example005()
Definition: example005.cpp:22
fc::kApiCpp
@ kApiCpp
10 C++ API
Definition: FCOptions.hpp:40
fc::TransferStats::timeRemaining
std::chrono::high_resolution_clock::duration timeRemaining
The amount of time left at the current transfer rate.
Definition: FCTransferStats.hpp:161
fc::Control::isValid
bool isValid() const
Quickly determine if the fc::Control object is still valid, or if it has been gutted using either the...
Definition: FCControl.cpp:67
fc::Name::full
virtual const std::string & full() const
Get the full name.
Definition: FCPath.cpp:274
fc::kNotOkay
@ kNotOkay
any response that matches < 100 or >= 400
Definition: FCUtils.hpp:134
fc::Options::setClientId
virtual Options & setClientId(const fc::EClientIdMajor major_id=fc::kApi, const fc::EClientIdMinor minor_id=fc::kApiCpp)
Set the client ID values needed by FileCatalyst servers.
Definition: FCOptions.cpp:377
fc::TransferStats::temporaryLocalFilename
fc::Local temporaryLocalFilename
Temporary filename used during transfer.
Definition: FCTransferStats.hpp:121
product
you must not claim that you wrote the original software If you use this software in a product
Definition: 03_licence.txt:52
fc::Options::setFtpServer
virtual Options & setFtpServer(const std::string &ip_or_hostname, const unsigned short tcp_port=21)
Set the FTP server address and port.
Definition: FCOptions.cpp:303
fc::k430InvalidUsernameOrPassword
@ k430InvalidUsernameOrPassword
Definition: FCUtils.hpp:105
fc::Control::getFileSize
uint64_t getFileSize(const fc::Local &local)
Get the size of the specified remote file.
Definition: FCControl.cpp:789
fc::Logging::EType::kNormal
@ kNormal
Same as EType::kException + EType::kSummary.
fc::emptyMap
const StrMap & emptyMap()
Function that always returns an empty map. Used internally by FC++.
Definition: FCUtils.cpp:12
fc::k622_08_Mbps
@ k622_08_Mbps
622080000 bps
Definition: FCOptions.hpp:150
fc::k56KModem
@ k56KModem
56 Kbps
Definition: FCOptions.hpp:174
example004_progress_thread
void example004_progress_thread()
Definition: example004.cpp:32
fc::Options::setSslHandshake
virtual Options & setSslHandshake(const fc::ESslHandshakeMode ssl_handshake_mode=fc::kSslAutoDetect)
Set the SSL handshake handling.
Definition: FCOptions.cpp:552
fc::Options::setOverwrite
virtual Options & setOverwrite(const bool overwrite=false)
Toggle whether destination files can be overwritten.
Definition: FCOptions.cpp:607
fc::Options::setTransferResume
virtual Options & setTransferResume(const bool enabled=false, const int md5_chunk_size_in_KiB=16384)
Toggle support for resuming incomplete partial file transfers.
Definition: FCOptions.cpp:592
example001
int example001()
Definition: example001.cpp:24
fc::TransferStats::payloadBytesExpected
uint64_t payloadBytesExpected
The total size of the file being transferred.
Definition: FCTransferStats.hpp:210
fc::k80211n
@ k80211n
802.11n, 600 Mbps
Definition: FCOptions.hpp:223
fc::k1200_bps
@ k1200_bps
1200 bps
Definition: FCOptions.hpp:104
fc::EClientIdMinor
EClientIdMinor
Definition: FCOptions.hpp:35
fc::Options::Options
Options()
Default constructor uses all built-in default values.
Definition: FCOptions.cpp:105
fc::kOC192
@ kOC192
OC-192, 9.95 Gbps.
Definition: FCOptions.hpp:202
fc::TransferStats::fileReaderStarved
uint64_t fileReaderStarved
Number of times when the file reader couldn't proceed with reading the file from disk due to insuffic...
Definition: FCTransferStats.hpp:424
fc::Name::findSeparator
std::string findSeparator() const
Logic to extract the directory separator from the default directory or the explicit name.
Definition: FCPath.cpp:312
showProgress
bool showProgress
Definition: example004.cpp:29
fc::formatBytesSI
std::string formatBytesSI(const uint64_t bytes)
Format the payload bytes using SI units (1000 bytes per "K").
Definition: FCTransferStats.cpp:639
fc::k54_Mbps
@ k54_Mbps
54000000 bps
Definition: FCOptions.hpp:137
distribute
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this distribute
Definition: 03_licence.txt:29
fc::TransferStats::EState
EState
Used in several locations to indicate the state of the file transfer.
Definition: FCTransferStats.hpp:47
fc::Remote::setDefaultDir
virtual void setDefaultDir(const std::string &dir) const
Set the default directory.
Definition: FCPath.cpp:438
fc::EConnectionMode
EConnectionMode
Definition: FCOptions.hpp:55
fc::GlobalStats::timeStarted
std::chrono::high_resolution_clock::time_point timeStarted
The absolute time when the current set of transfers started.
Definition: FCStateAndStats.hpp:97
fc::k100BaseX
@ k100BaseX
100 Mbps
Definition: FCOptions.hpp:208
fc::Name::fileName
std::string fileName
the last component from full()
Definition: FCPath.hpp:131
license
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this license(the "Software") to use
fc::TransferStats::transfer
EState transfer
State of the file transfer.
Definition: FCTransferStats.hpp:88
fc::k14_4_Kbps
@ k14_4_Kbps
14400 bps
Definition: FCOptions.hpp:108
fc::GlobalStateAndStats::EState
EState
Definition: FCStateAndStats.hpp:118
fc::k10BaseX
@ k10BaseX
10 Mbps
Definition: FCOptions.hpp:207
fc::Options::setUsernameAndPassword
virtual Options & setUsernameAndPassword(const std::string &username, const std::string &password)
Set the username and password to use when connecting to the FTP server.
Definition: FCOptions.cpp:347
fc::kOC12
@ kOC12
OC-12, 0.62 Gbps.
Definition: FCOptions.hpp:196
https
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL https
Definition: 03_licence.txt:11
fc::k1xxMore
@ k1xxMore
any 1xx-style response
Definition: FCUtils.hpp:129
fc::Options::setEncoders
virtual Options & setEncoders(const int number_of_encoders=5)
Set the number of FileCatalyst server-based file encoders.
Definition: FCOptions.cpp:485
fc::StrSet
std::set< std::string > StrSet
Defined for convenience: an ordered set of text strings.
Definition: FCUtils.hpp:31
fc::kSslSessionReuse
@ kSslSessionReuse
re-use the ssl session and bypass the ssl handshake
Definition: FCOptions.hpp:68
fc::k128KISDN
@ k128KISDN
ISDN, 128K.
Definition: FCOptions.hpp:177
fc::Exception
fc::Exception objects represent a C++ exception and usually includes stack traces and optional parame...
Definition: FCException.hpp:24
fc::Local::defaultDir
virtual const std::string & defaultDir() const
Get the default directory.
Definition: FCPath.cpp:392
fc::TransferStats
File transfer statistics.
Definition: FCTransferStats.hpp:37
fc::baseVersionStr
std::string baseVersionStr()
Return a simple version string.
Definition: FCUtils.cpp:19
fc::k257PathCreatedOrDirectoryStatus
@ k257PathCreatedOrDirectoryStatus
Definition: FCUtils.hpp:94
fc::kCliCpp
@ kCliCpp
8 C++ CLI tool
Definition: FCOptions.hpp:39
fc::TransferStats::tmp_filename_is_disabled
bool tmp_filename_is_disabled() const
Determine if this file stats object has the necessary filename information to use a temporary filenam...
Definition: FCTransferStats.hpp:526
fc::k255InTargetDirectoryAlready
@ k255InTargetDirectoryAlready
Definition: FCUtils.hpp:93
fc::TransferStats::blockSize
uint64_t blockSize
The block size.
Definition: FCTransferStats.hpp:382
fc::k139_264_Mbps
@ k139_264_Mbps
139264000 bps
Definition: FCOptions.hpp:142
fc::StrList
std::list< std::string > StrList
Defined for convenience: a list of text strings.
Definition: FCUtils.hpp:22
fc::TransferStats::timeTransferFinished
std::chrono::high_resolution_clock::time_point timeTransferFinished
The time when the transfer completed.
Definition: FCTransferStats.hpp:171
fc::Local::operator+
virtual Local operator+(const std::string &name) const
Definition: FCPath.cpp:414
fc::TransferStats::echoPacketsReceived
uint64_t echoPacketsReceived
The total number of echo packets received.
Definition: FCTransferStats.hpp:334
fc::Control::makeManyDirectories
int makeManyDirectories(const fc::StrVec &directories)
Create multiple directories on the FTP server.
Definition: FCControl.cpp:360
fc::kInvalidMajorId
@ kInvalidMajorId
Definition: FCOptions.hpp:28
fc::k64_Kbps
@ k64_Kbps
64000 bps
Definition: FCOptions.hpp:112
fc::Local::setDefaultDir
virtual void setDefaultDir(const std::string &dir) const
Set the default directory.
Definition: FCPath.cpp:369
fc::Control::getFileMap
const fc::TransferStatsMap & getFileMap() const
Get a reference to the transfer file map.
Definition: FCControl.cpp:167
fc::TransferStats::bitsPerSecondImmediateTransferRate
uint64_t bitsPerSecondImmediateTransferRate
Transfer rates measured in bits per second.
Definition: FCTransferStats.hpp:259
fc::k350RequestedActionPendingFurtherInfo
@ k350RequestedActionPendingFurtherInfo
Definition: FCUtils.hpp:99
fc::k150FileStatusOkayOpenDataConnection
@ k150FileStatusOkayOpenDataConnection
Definition: FCUtils.hpp:70
fc::GlobalStats::remainingNumberOfPayloadBytesToTransfer
uint64_t remainingNumberOfPayloadBytesToTransfer
The number of bytes remaining to upload or download.
Definition: FCStateAndStats.hpp:88
fc::Control::changeDirectory
std::string changeDirectory(const fc::Remote &directory)
Change the working directory on the FTP server.
Definition: FCControl.cpp:321
fc::kGigabit
@ kGigabit
1 Gbps
Definition: FCOptions.hpp:215
fc
Definition: FCControl.hpp:17
fc::kSslFullHandshake
@ kSslFullHandshake
do not re-use ssl sessions; do the full ssl handshake
Definition: FCOptions.hpp:67
fc::k534RequestDeniedDueToPolicy
@ k534RequestDeniedDueToPolicy
Definition: FCUtils.hpp:122
fc::k3_152_Mbps
@ k3_152_Mbps
3152000 bps
Definition: FCOptions.hpp:125
fc::Control::disconnect
Control & disconnect()
Disconnect the fc::Control object from the FTP server.
Definition: FCControl.cpp:255
fc::Options::setRemotedir
virtual Options & setRemotedir(const std::string &remote_directory="/")
Base path used when accessing remote files.
Definition: FCOptions.cpp:577
fc::k236_8_Kbps
@ k236_8_Kbps
236800 bps
Definition: FCOptions.hpp:115
fc::Control::isFile
bool isFile(const fc::Local &local)
Determine if the specified name is a filename.
Definition: FCControl.cpp:839
fc::k200CommandOkay
@ k200CommandOkay
Definition: FCUtils.hpp:73
fc::k221ClosingConnectionLoggedOut
@ k221ClosingConnectionLoggedOut
Definition: FCUtils.hpp:81
fc::Exception::display
virtual void display(const bool showDisplayStack=true) const
Display the exception using std::cout. Calls to_string() to format the message.
Definition: FCException.cpp:200
username
const std::string username
Definition: example006.cpp:16
fc::Mbps
uint64_t Mbps(const int rate)
Convert easy-to-use numerical values to bps values.
Definition: FCOptions.hpp:271
fc::k226ClosingDataConnectionTransferDone
@ k226ClosingDataConnectionTransferDone
Definition: FCUtils.hpp:83
fc::kApi
@ kApi
7 FC API (e.g., C++ API)
Definition: FCOptions.hpp:30
fc::TransferStats::encryptionThreadStarved
uint64_t encryptionThreadStarved
Number of times when one of the encryption threads had no buffers remaining to encrypt.
Definition: FCTransferStats.hpp:445
fc::GlobalStats::timeRemaining
std::chrono::high_resolution_clock::duration timeRemaining
A relative amount of time, from "now", indicating how much time remains before the current set of tra...
Definition: FCStateAndStats.hpp:102
display
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this display
Definition: 03_licence.txt:29
fc::Control::nameDoesNotExist
bool nameDoesNotExist(const fc::Remote &remote)
Determine if a file or directory already exists with this name.
Definition: FCControl.hpp:1113
fc::kDS4
@ kDS4
DS-4, 274.176 Mbps.
Definition: FCOptions.hpp:184
fc::kOC256
@ kOC256
OC-256, 13.1 Gbps.
Definition: FCOptions.hpp:203
grant
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license grant
Definition: 03_licence.txt:35
fc::k2_5G
@ k2_5G
2.5G, GPRS, 56 Kbps
Definition: FCOptions.hpp:230
example006_print_stats
void example006_print_stats(const fc::TransferStatsMap &m)
Definition: example006.cpp:21
fc::Control::getFileMD5
std::string getFileMD5(const fc::Local &local)
Get the MD5 signature of the specified local file.
Definition: FCControl.cpp:724
fc::kOC36
@ kOC36
OC-36, 1.87 Gbps.
Definition: FCOptions.hpp:199
fc::TransferStats::kInvalid
@ kInvalid
Definition: FCTransferStats.hpp:49
fc::kAny
@ kAny
any response that matches >= 100 and < 600
Definition: FCUtils.hpp:132
fc::k1_3_Gbps
@ k1_3_Gbps
1300000000 bps
Definition: FCOptions.hpp:154
fc::formatBytesIEC
std::string formatBytesIEC(const uint64_t bytes)
Format the payload bytes using IEC units (1024 bytes per "K").
Definition: FCTransferStats.cpp:646
fc::Options::reset
virtual Options & reset()
Reset the Options object to use all of the built-in default values.
Definition: FCOptions.cpp:127
fc::k397_200_Mbps
@ k397_200_Mbps
397200000 bps
Definition: FCOptions.hpp:145
so
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do so
Definition: 03_licence.txt:32
fc::k532NeedAccount
@ k532NeedAccount
Definition: FCUtils.hpp:120
fc::k550RequestAbortedFileOrDirectoryError
@ k550RequestAbortedFileOrDirectoryError
Definition: FCUtils.hpp:123
fc::Logging::EType::kDebug
@ kDebug
Debug-level logging is not available in release builds. It cannot be enabled or disabled through this...
fc::FileDetails
A collection of file or directory properties returned when a directory listing has been requested.
Definition: FCUtils.hpp:145
main
int main(int argc, char *argv[])
Definition: example001.cpp:96
password
const std::string password
Definition: example006.cpp:17
fc::Control::getOptimalUnitAndBlockSizes
Control & getOptimalUnitAndBlockSizes(const uint64_t file_size_in_bytes, int &unit_size_in_bytes, int &block_size_in_bytes)
Determine the best UDP unit and block sizes based on the given sizes.
Definition: FCControl.cpp:971
fc::Options::setLimits
virtual Options & setLimits(const int unit_size_in_bytes=1024, const int block_size_in_bytes=4194304)
Set the maximum unit and block size limits when using UDP mode transfers.
Definition: FCOptions.cpp:402
fc::Options::setTrace
virtual Options & setTrace(const bool enabled=false)
Toggle trace debug messages.
Definition: FCOptions.cpp:679
fc::Control::~Control
~Control()
Destructing the fc::Control object terminates any connection to the ftp server.
Definition: FCControl.cpp:53
fc::StrVec
std::vector< std::string > StrVec
Defined for convenience: a vector of text strings.
Definition: FCUtils.hpp:25
fc::StrMap
std::map< std::string, std::string > StrMap
Defined for convenience: an ordered map where both the key and the value are text strings.
Definition: FCUtils.hpp:28
fc::GlobalStats::GlobalStats
GlobalStats()
Definition: FCStateAndStats.cpp:11
fc::k450ActionNotTakenBusyOrUnavailable
@ k450ActionNotTakenBusyOrUnavailable
Definition: FCUtils.hpp:108
fc::bps
uint64_t bps(const fc::ECommonBandwidth &bandwidth)
Convert the common bandwidth enum value to a usable bps value.
Definition: FCOptions.cpp:12
fc::GlobalStateAndStats::kInvalid
@ kInvalid
Definition: FCStateAndStats.hpp:120
fc::Logging::EType::kTrace
@ kTrace
UDP upload packet and block trace.
fc::kInvalidMinorId
@ kInvalidMinorId
Definition: FCOptions.hpp:37
fc::Name
To prevent mixing up local path and remote path parameters when calling the FC++ API,...
Definition: FCPath.hpp:45
fc::Control::getFileMapIndex
size_t getFileMapIndex() const
Get the current transfer index into the file transfer mapping.
Definition: FCControl.cpp:179
fc::Logging::enable
bool enable(const EType type, fc::Options &options, const std::string &log_directory="")
Enable the specified type of logging.
Definition: FCLogging.cpp:11
fc::k434RequestedHostUnavailable
@ k434RequestedHostUnavailable
Definition: FCUtils.hpp:107
fc::Control::noop
Control & noop()
Send a NO-OP to the server.
Definition: FCControl.cpp:239
summary_logging_enabled
static bool summary_logging_enabled
Definition: FCSummaryLog.cpp:13
fc::kFtp
@ kFtp
1 TCP/FTP (original FTP mode)
Definition: FCOptions.hpp:49
fc::k2_5_Mbps
@ k2_5_Mbps
2500000 bps
Definition: FCOptions.hpp:124
fc::Name::filename
virtual const std::string & filename() const
Get the last component in full() which normally would be the filename.
Definition: FCPath.cpp:243
fc::Control::cancelTransfer
Control & cancelTransfer()
Cancel the current file transfer (and all remaining files if multiple files have been prepared).
Definition: FCControl.cpp:694
fc::TransferStats::onTheFlyMd5Received
uint64_t onTheFlyMd5Received
On-the-fly MD5 is not supported by FC++, but the packets are counted.
Definition: FCTransferStats.hpp:414
fc::Options
fc::Options contains all the default and user-defined settings required by fc::Control to connect to ...
Definition: FCOptions.hpp:282
fc::k1200Modem
@ k1200Modem
1200 bps
Definition: FCOptions.hpp:168
fc::k2_Mbps
@ k2_Mbps
2000000 bps
Definition: FCOptions.hpp:122
fc::GlobalStats
GlobalStats is used to track some summary statistics during file transfers.
Definition: FCStateAndStats.hpp:36
fc::Exception::oldherrno
int oldherrno
of limited use; not typically shown
Definition: FCException.hpp:166
fc::k89_472
@ k89_472
89472000 bps
Definition: FCOptions.hpp:138
fc::Name::isAbsolute
virtual bool isAbsolute() const
Original name is absolute, such as /tmp/test.txt or C:\Files.
Definition: FCPath.cpp:162
fc::k256_Kbps
@ k256_Kbps
256000 bps
Definition: FCOptions.hpp:116
fc::Exception::getLogFilename
static std::string getLogFilename()
Get the name of the file used to record FC++ exceptions.
Definition: FCException.cpp:285
fc::k1000BaseX
@ k1000BaseX
1 Gbps
Definition: FCOptions.hpp:209
fc::k128_Kbps
@ k128_Kbps
128000 bps
Definition: FCOptions.hpp:113
fc::Options::setTmpFilenames
virtual Options & setTmpFilenames(const bool enabled=false, const std::string &suffix=".tmp", const std::string &prefix="")
When uploading or downloading files, sometimes the target filename should not be overwritten or made ...
Definition: FCOptions.cpp:721
password
const std::string password
Definition: example007.cpp:17
fc::k552RequestAbortedOutOfDiskSpace
@ k552RequestAbortedOutOfDiskSpace
Definition: FCUtils.hpp:125
fc::GlobalStateAndStats::kNotConnected
@ kNotConnected
Definition: FCStateAndStats.hpp:122
fc::TransferStats::TransferStats
TransferStats()
Constructor.
Definition: FCTransferStats.cpp:20
fc::k228ServerEnteringLongPassiveMode
@ k228ServerEnteringLongPassiveMode
(long address, port)
Definition: FCUtils.hpp:85
FCControl.hpp
fc::kEthernet
@ kEthernet
10 Mbps
Definition: FCOptions.hpp:213
fc::Control::flush
Control & flush()
Flush the TCP control channel.
Definition: FCControl.cpp:709
fc::k110RestartMarkerReply
@ k110RestartMarkerReply
Definition: FCUtils.hpp:67
fc::Logging::EType
EType
Definition: FCLogging.hpp:57
fc::k384_Kbps
@ k384_Kbps
384000 bps
Definition: FCOptions.hpp:117
fc::k2488_32_Mbps
@ k2488_32_Mbps
2488320000 bps (this value requires an unsigned 32-bit interger)
Definition: FCOptions.hpp:157
password
const std::string password
Definition: example004.cpp:26
fc::k9600Modem
@ k9600Modem
9600 bps
Definition: FCOptions.hpp:170
fc::TransferStats::remoteFilename
fc::Remote remoteFilename
Including the path.
Definition: FCTransferStats.hpp:113
fc::Name::explicitName
std::string explicitName
The name used when the object was instantiated.
Definition: FCPath.hpp:128
fc::k1_Mbps
@ k1_Mbps
1000000 bps
Definition: FCOptions.hpp:120
restrictions
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license this restriction and the following must be included in all copies of the in whole or in and all derivative works of the unless such copies or derivative works are solely in the form of machine executable object code generated by a source language processor including commercial and to alter it and redistribute it subject to the following restrictions
Definition: 03_licence.txt:50
Software
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the Software
Definition: 03_licence.txt:30
fc::FileDetails::groupname
std::string groupname
Definition: FCUtils.hpp:152
fc::kMobile
@ kMobile
15 FC Mobile (e.g., iOS app)
Definition: FCOptions.hpp:31
fc::Control::removeDirectory
std::string removeDirectory(const fc::Remote &directory)
Remove an empty directory on the FTP server.
Definition: FCControl.cpp:347
fc::k144_Kbps
@ k144_Kbps
144000 bps
Definition: FCOptions.hpp:114
fc::kOC9
@ kOC9
OC-9, 466.56 Mbps.
Definition: FCOptions.hpp:195
fc::Control::deleteTemporaryFiles
Control & deleteTemporaryFiles()
This is automatically called by FC++ to delete all temporary files once a transfer has completed.
Definition: FCControl.cpp:1085
fc::Local::~Local
virtual ~Local()
Definition: FCPath.cpp:356
fc::Exception::Exception
Exception(FC_WHERE_DEF, const boost::system::error_code &ec, const std::string &description, const fc::StrMap &m=fc::emptyMap())
Constructor with a boost::system::error_code value.
Definition: FCException.cpp:18
fc::TransferStats::metricsPacketsSent
uint64_t metricsPacketsSent
The total number of metric packets sent.
Definition: FCTransferStats.hpp:352
fc::Exception::olderrno
int olderrno
errno at the time the exception was created
Definition: FCException.hpp:165
fc::GlobalStateAndStats::kTransferring
@ kTransferring
file transfer in progress
Definition: FCStateAndStats.hpp:125
password
const std::string password
Definition: example005.cpp:18
fc::k100_Mbps
@ k100_Mbps
100000000 bps
Definition: FCOptions.hpp:140
fc::k231UserLoggedOut
@ k231UserLoggedOut
Definition: FCUtils.hpp:88
fc::TransferStats::target_remote_filename
fc::Remote target_remote_filename() const
Returns the remote filename which should be used.
Definition: FCTransferStats.hpp:511
fc::Exception::errorCode
boost::system::error_code errorCode
typically set by boost::asio
Definition: FCException.hpp:176
fc::Remote
The class fc::Remote is used to encapsulate remote directories or files.
Definition: FCPath.hpp:160
fc::Name::operator+=
virtual Name & operator+=(const std::string &rhs)
Append a filename to an existing Local or Remote object.
Definition: FCPath.cpp:144
fc::k768_Kbps
@ k768_Kbps
768000 bps
Definition: FCOptions.hpp:119
fc::k8_448_Mbps
@ k8_448_Mbps
8448000 bps
Definition: FCOptions.hpp:129
fc::Name::~Name
virtual ~Name()
Definition: FCPath.cpp:17
fc::kDS0
@ kDS0
DS-0, 64 Kbps.
Definition: FCOptions.hpp:180
fc::k125DataConnectionAlreadyOpen
@ k125DataConnectionAlreadyOpen
Definition: FCUtils.hpp:69
example002
int example002()
Definition: example002.cpp:23
fc::Name::parentDir
virtual const std::string & parentDir() const
Get the parent directory if known, or a blank string if unknown.
Definition: FCPath.cpp:203
fc::TransferStats::kSkippedMD5
@ kSkippedMD5
TransferStats::type the entire file was skipped (md5 matched); see fc::Options::setTransferResume()
Definition: FCTransferStats.hpp:67
fc::Control::isDirectory
bool isDirectory(const fc::Local &local)
Determine if the specified name is a directory.
Definition: FCControl.cpp:863
fc::Name::c_str
virtual const char * c_str() const
Definition: FCPath.hpp:53
main
int main(int argc, char *argv[])
Definition: example002.cpp:116
fc::kNone
@ kNone
do not expect a response
Definition: FCUtils.hpp:136
fc::GlobalStateAndStats
Combine both state and statistics into a single class which callers can access.
Definition: FCStateAndStats.hpp:114
fc::Control::renameFile
std::string renameFile(const fc::Remote &remoteFrom, const fc::Remote &remoteTo)
Rename a remote file.
Definition: FCControl.cpp:915
fc::Control::Control
Control(const fc::Options &options)
Each fc::Control object represents a single FTP server connection to be controlled.
Definition: FCControl.cpp:14
following
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the following
Definition: 03_licence.txt:34
fc::Name::create_temporary_filename
virtual std::string create_temporary_filename(const fc::Options &options) const
Create a temporary filename to use based on the prefix and suffix in the given options.
Definition: FCPath.cpp:345
fc::ETransferMode
ETransferMode
Definition: FCOptions.hpp:46
fc::Control::detectApproximateUploadSpeed
uint64_t detectApproximateUploadSpeed(const bool force_refresh=false)
Get an approximation of the available upload transfer rate between the FC++ client and server.
Definition: FCControl.cpp:1055
fc::k565_148_Mbps
@ k565_148_Mbps
565148000 bps
Definition: FCOptions.hpp:148
fc::kT2
@ kT2
T2, 6.31 Mbps.
Definition: FCOptions.hpp:188
fc::Name::setDefaultDir
virtual void setDefaultDir(const std::string &dir) const =0
Set the default directory.
example007
int example007()
Definition: example007.cpp:38
fc::k502CommandNotImplemented
@ k502CommandNotImplemented
also see k202CommandNotImplemented
Definition: FCUtils.hpp:115
notice
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright notice
Definition: 03_licence.txt:18
password
const std::string password
Definition: example003.cpp:17
fc::FileDetails::filesize
uint64_t filesize
Definition: FCUtils.hpp:148
FC_EXCEPTION_FILENAME
#define FC_EXCEPTION_FILENAME
If a file exists with this name, then any FC++ exception created will also be automatically appended ...
Definition: FCException.hpp:34
fc::Remote::operator+
virtual Remote operator+(const std::string &name) const
Definition: FCPath.cpp:483
fc::TransferStats::getStr
std::string getStr(const std::string &header="", const bool all=false) const
Similar to getMap(), but append all items to create a single multi-line text string to display for de...
Definition: FCTransferStats.cpp:198
fc::kFastEthernet
@ kFastEthernet
100 Mbps
Definition: FCOptions.hpp:214
fc::k10GBaseX
@ k10GBaseX
10 Gbps
Definition: FCOptions.hpp:210
fc::k530NotLoggedIn
@ k530NotLoggedIn
Definition: FCUtils.hpp:119
fc::GlobalStateAndStats::fileStatsIdx
size_t fileStatsIdx
During file transfers, the FC++ library will update this index into fc::GlobalStateAndStats::fileStat...
Definition: FCStateAndStats.hpp:142
met
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are met
Definition: 03_licence.txt:16
fc::Options::~Options
virtual ~Options()
Destructor.
Definition: FCOptions.cpp:99
fc::Options::setLogFileOutputDir
virtual Options & setLogFileOutputDir(const std::string &dir=".")
Set the directory that FC++ uses for writing log files.
Definition: FCOptions.cpp:695
fc::Gbps
uint64_t Gbps(const int rate)
Convert easy-to-use numerical values to bps values.
Definition: FCOptions.hpp:274
fc::Control::isConnected
bool isConnected() const
Quickly determine if the fc::Control object is connected to a FTP server.
Definition: FCControl.cpp:75
fc::k9600_bps
@ k9600_bps
9600 bps
Definition: FCOptions.hpp:107
fc::kSslAutoDetect
@ kSslAutoDetect
ssl handshake is chosen depending on the server type
Definition: FCOptions.hpp:66
fc::formatTimestamp2
std::string formatTimestamp2(std::chrono::high_resolution_clock::time_point tp)
Format the absolute time point using "YYYY:MM:DD HH:MM:SS.mmmmmm" where mmmmmm is microseconds.
Definition: FCTransferStats.cpp:511
fc::kT1
@ kT1
T1, 1.54 Mbps.
Definition: FCOptions.hpp:186
fc::k331SendPassword
@ k331SendPassword
Definition: FCUtils.hpp:97
fc::k10_Mbps
@ k10_Mbps
10000000 bps
Definition: FCOptions.hpp:130
fc::GlobalStats::totalNumberOfPayloadBytesSkipped
uint64_t totalNumberOfPayloadBytesSkipped
Number of bytes that were skipped due to auto-resume of a previous partial file transfers.
Definition: FCStateAndStats.hpp:85
fc::Control::getGlobalStateAndStats
const fc::GlobalStateAndStats & getGlobalStateAndStats() const
Get a reference to the global FC++ state and file transfer statistics for the control object.
Definition: FCControl.cpp:127
fc::kInvalidConnectionMode
@ kInvalidConnectionMode
Definition: FCOptions.hpp:57
fc::TransferStats::kFull
@ kFull
TransferStats::type full transfer (entire file was sent or received)
Definition: FCTransferStats.hpp:65
fc::TransferStats::localFilename
fc::Local localFilename
Including the path.
Definition: FCTransferStats.hpp:112
fc::k10Gigabit
@ k10Gigabit
10 Gbps
Definition: FCOptions.hpp:216
fc::Exception::lineNumber
int lineNumber
source file line number
Definition: FCException.hpp:169
fc::k553RequestAbortedIllegalFilename
@ k553RequestAbortedIllegalFilename
Definition: FCUtils.hpp:126
fc::kInvalidSslHandshake
@ kInvalidSslHandshake
Definition: FCOptions.hpp:65
fc::TransferStats::encrypted
bool encrypted
Whether the transfer was encrypted using TCP+SSL or UDP+AES.
Definition: FCTransferStats.hpp:395
fc::Control::getCurrentServerReplyString
std::string getCurrentServerReplyString() const
Quickly retrieve the last result string received from the FTP server.
Definition: FCControl.cpp:103
password
const std::string password
Definition: example001.cpp:20
FCBoost.hpp
fc::k34_368_Mbps
@ k34_368_Mbps
34368000 bps
Definition: FCOptions.hpp:134
fc::Remote::Remote
Remote(const std::string &n)
Definition: FCPath.cpp:431
fc::TransferStats::kMd5InProgress
@ kMd5InProgress
TransferStats::md5 MD5 verification has started; see fc::Options::setMd5Verification()
Definition: FCTransferStats.hpp:53
fc::k504CommandNotImplementedWithParm
@ k504CommandNotImplementedWithParm
Definition: FCUtils.hpp:117
fc::TransferStats::packetsSent
uint64_t packetsSent
The total number of packets sent to the server (client-side overhead).
Definition: FCTransferStats.hpp:297
fc::Name::empty
virtual bool empty() const
Definition: FCPath.hpp:52
fc::formatTimestamp
std::string formatTimestamp(std::chrono::high_resolution_clock::time_point tp)
Format the absolute time point using "YYYY:MM:DD HH:MM:SS".
Definition: FCTransferStats.cpp:478
fc::k28_8_Kbps
@ k28_8_Kbps
28800 bps
Definition: FCOptions.hpp:109
fc::GlobalStats::remainingNumberOfFilesToSend
uint64_t remainingNumberOfFilesToSend
The total number of files left to upload to the server.
Definition: FCStateAndStats.hpp:57
fc::TransferStats::remoteMd5
std::string remoteMd5
May not be set if MD5 is disabled.
Definition: FCTransferStats.hpp:106
fc::Name::parentDirectory
std::string parentDirectory
the parent directory including the terminating slash
Definition: FCPath.hpp:132
fc::kInvalidBandwidth
@ kInvalidBandwidth
same as kZero_bps
Definition: FCOptions.hpp:99
fc::k1_544_Mbps
@ k1_544_Mbps
1544000 bps
Definition: FCOptions.hpp:121
fc::TransferStats::multipleBlocksInAckNackState
uint64_t multipleBlocksInAckNackState
Number of times when there was multiple blocks simultaneously waiting for ACK/NACK acknowledgment.
Definition: FCTransferStats.hpp:454
fc::k503BadSequenceOfCommands
@ k503BadSequenceOfCommands
Definition: FCUtils.hpp:116
fc::TransferStats::upload
bool upload
Whether the transfer was an upload or a download.
Definition: FCTransferStats.hpp:407
fc::TransferStats::kSkippedFileExists
@ kSkippedFileExists
TransferStats::type the entire file was skipped (overwrite mode is disabled); see fc::Options::setOve...
Definition: FCTransferStats.hpp:68
LIBFCVER
#define LIBFCVER
Definition: FCVersion.hpp:31
fc::Options::setTimeout
virtual Options & setTimeout(const int timeout=15)
Set the socket timeout when reading and writing network sockets.
Definition: FCOptions.cpp:387
fc::Kbps
uint64_t Kbps(const int rate)
Convert easy-to-use numerical values to bps values.
Definition: FCOptions.hpp:268
fc::k451ActionAbortedLocalError
@ k451ActionAbortedLocalError
Definition: FCUtils.hpp:109
fc::formatTransferStatsEState
std::string formatTransferStatsEState(const fc::TransferStats::EState state)
Format the MD5 and transfer state enums into text strings.
Definition: FCTransferStats.cpp:250
fc::libfcBitSize
int libfcBitSize()
Determine if the library was built for a 32-bit or 64-bit platform.
Definition: FCUtils.cpp:31
fc::getTextFromServerReply
std::string getTextFromServerReply(const std::string &reply)
Parse the given string and return only the last line of text following the 3-digit FTP status code.
Definition: FCUtils.cpp:84
main
int main(int argc, char *argv[])
Definition: example006.cpp:143
serverIP
const std::string serverIP
Definition: example002.cpp:20
fc::kZero_bps
@ kZero_bps
0 bps
Definition: FCOptions.hpp:100
main
int main(int argc, char *argv[])
Definition: example007.cpp:70
fc::TransferStats::ackPacketsReceived
uint64_t ackPacketsReceived
The total number of ack packets.
Definition: FCTransferStats.hpp:320
fc::k426DataConnectionClosedAbnormally
@ k426DataConnectionClosedAbnormally
Definition: FCUtils.hpp:104
fc::Exception::truncateLogFile
static bool truncateLogFile()
Alias for fc::Exception::createLogFile() to re-create the log file in which FC++ exceptions are logge...
Definition: FCException.hpp:149
username
const std::string username
Definition: example001.cpp:19
Charette
FileCatalyst C API Written by Stéphane Charette
Definition: 03_licence.txt:2
fc::k1244_16_Mbps
@ k1244_16_Mbps
1244160000 bps
Definition: FCOptions.hpp:153
fc::FileDetails::timestamp
std::string timestamp
Definition: FCUtils.hpp:149
fc::FileDetails::permissions
std::string permissions
Definition: FCUtils.hpp:150
fc::TransferStats::duplicatePacketDropped
uint64_t duplicatePacketDropped
The total number of payload packets dropped because we received a duplicate from the server.
Definition: FCTransferStats.hpp:305
example006
int example006()
Definition: example006.cpp:45
fc::GlobalStats::clear
GlobalStats & clear()
Definition: FCStateAndStats.cpp:18
fc::k213FileStatus
@ k213FileStatus
Definition: FCUtils.hpp:77
fc::k2_048_Mbps
@ k2_048_Mbps
2048000 bps
Definition: FCOptions.hpp:123
fc::TransferStatsMap
std::map< size_t, fc::TransferStats > TransferStatsMap
Track all of the individual file transfers, where the key is a numeric sequence describing the order ...
Definition: FCStateAndStats.hpp:24
FC_SUMMARY_FILENAME
#define FC_SUMMARY_FILENAME
Definition: FCSummaryLog.cpp:12
fc::Control::getFileModificationTime
std::string getFileModificationTime(const fc::Remote &remote)
Get the modification timestamp of the specified remote file.
Definition: FCControl.cpp:776
fc::k1866_24_Mbps
@ k1866_24_Mbps
1866240000 bps
Definition: FCOptions.hpp:155
fc::formatTransferRate
std::string formatTransferRate(const uint64_t bps)
Format the transfer rate statistic using the common descriptions Kbps, Mbps, etc.
Definition: FCTransferStats.cpp:621
serverIP
const std::string serverIP
Definition: example001.cpp:21
fc::k80211ad
@ k80211ad
802.11ad, 6.75 Gbps
Definition: FCOptions.hpp:225
main
int main(int argc, char *argv[])
Definition: example004.cpp:116
fc::Exception::~Exception
virtual ~Exception() FC_NOEXCEPT
Destructor.
Definition: FCException.cpp:12
username
const std::string username
Definition: example002.cpp:18
fc::Exception::removeLogFile
static bool removeLogFile()
Remove the fc_exception.log file.
Definition: FCException.cpp:365
fc::Logging::disable
bool disable(const EType type, fc::Options &options)
Disable the specified logging type.
Definition: FCLogging.cpp:72
fc::Exception::filename
std::string filename
source file
Definition: FCException.hpp:170
FC_WHERE_DEF
#define FC_WHERE_DEF
Macros used to pass in several required parameters when instantiating a fc::Exception object.
Definition: FCException.hpp:41
convertNumberToSiOrIecString
static std::string convertNumberToSiOrIecString(const uint64_t bps, const long double factor=1000)
Definition: FCTransferStats.cpp:532
fc::k28KModem
@ k28KModem
28.8 Kbps
Definition: FCOptions.hpp:172
fc::k4_Mbps
@ k4_Mbps
4000000 bps
Definition: FCOptions.hpp:127
fc::k80211g
@ k80211g
802.11g, 54 Mbps
Definition: FCOptions.hpp:222
fc::Exception::map
fc::StrMap map
additional/optional debug information
Definition: FCException.hpp:175
fc::TransferStats::type
EState type
The type of transfer.
Definition: FCTransferStats.hpp:94
main
int main(int argc, char *argv[])
Definition: example005.cpp:77
fc::Exception::to_string
virtual std::string to_string() const
Convert the exception to a very detailed multi-line text block.
Definition: FCException.hpp:99
example007_file_transfer_stats_callback
void example007_file_transfer_stats_callback(const fc::GlobalStateAndStats &stats, void *ptr)
Definition: example007.cpp:21
fc::GlobalStats::totalNumberOfFilesSent
uint64_t totalNumberOfFilesSent
The total number of files uploaded from the client to the server.
Definition: FCStateAndStats.hpp:48
fc::Control::clearFileMap
fc::Control & clearFileMap()
Clear the map of pending file transfers.
Definition: FCControl.cpp:153
fc::Options::getLogFileOutputDir
static fc::Local getLogFileOutputDir()
Static method to get the location where FileCatalyst C++ log files should be written.
Definition: FCOptions.cpp:713
fc::TransferStats::kTransferFinished
@ kTransferFinished
TransferStats::transfer indicates the transfer was successful
Definition: FCTransferStats.hpp:61
fc::GlobalStateAndStats::kPauseForRetry
@ kPauseForRetry
see fc::Options::setRetries()
Definition: FCStateAndStats.hpp:126
fc::Name::fullDirAndName
std::string fullDirAndName
the name combined with the default directory
Definition: FCPath.hpp:133
fc::kT3
@ kT3
T3, 44.74 Mbps.
Definition: FCOptions.hpp:189
password
const std::string password
Definition: example002.cpp:19
fc::k227ServerOpenedPassiveConnection
@ k227ServerOpenedPassiveConnection
(h1,h2,h3,h4,p1,p2)
Definition: FCUtils.hpp:84
fc::k1_Kbps
@ k1_Kbps
1000 bps
Definition: FCOptions.hpp:103
fc::GlobalStateAndStats::clear
GlobalStateAndStats & clear()
Definition: FCStateAndStats.cpp:42
fc::k425CannotOpenDataConnection
@ k425CannotOpenDataConnection
Definition: FCUtils.hpp:103
fc::kCli
@ kCli
3 FC CLI tool
Definition: FCOptions.hpp:29
fc::k202CommandNotImplemented
@ k202CommandNotImplemented
also see k502CommandNotImplemented
Definition: FCUtils.hpp:74
fc::formatTimeDuration
std::string formatTimeDuration(const std::chrono::high_resolution_clock::duration &d)
Format the "time remaining" statistic as a number followed by a common 1-letter description.
Definition: FCTransferStats.cpp:386
fc::Control::raw
std::string raw(const std::string &cmd, const fc::FtpServerReplyCodes expectedReply=fc::kOkay)
Send an unmanaged raw command to the server.
Definition: FCControl.cpp:943
charge
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of charge
Definition: 03_licence.txt:27
main
int main(int argc, char *argv[])
Definition: example003.cpp:55
fc::Exception::timestamp
std::chrono::high_resolution_clock::time_point timestamp
time when the exception was created
Definition: FCException.hpp:173
fc::GlobalStats::remainingNumberOfFilesToReceive
uint64_t remainingNumberOfFilesToReceive
The total number of files left to download from the server.
Definition: FCStateAndStats.hpp:60
fc::TransferStats::add_to_map
fc::StrMap & add_to_map(fc::StrMap &m, const std::string &header="") const
Get the map entries – similar to getmap() – but instead of returning a new map, add the entries to a ...
Definition: FCTransferStats.cpp:241
FCVersion.hpp
fc::kCliJava
@ kCliJava
7 Java application
Definition: FCOptions.hpp:38
FCTransferStats.hpp
fc::kOC18
@ kOC18
OC-18, 0.93 Gbps.
Definition: FCOptions.hpp:197
fc::TransferStats::networkWriterStarved
uint64_t networkWriterStarved
Number of times when the network buffer writer couldn't proceed with writing to the socket due to a l...
Definition: FCTransferStats.hpp:434
fc::GlobalStateAndStats::kConnected
@ kConnected
connection is established, no transfer in progress
Definition: FCStateAndStats.hpp:124
fc::Control::detectApproximateDownloadSpeed
uint64_t detectApproximateDownloadSpeed(const bool force_refresh=false)
Get an approximation of the available download transfer rate between the FC++ client and server.
Definition: FCControl.cpp:1070
such
you must not claim that you wrote the original software If you use this software in a an acknowledgment in the product documentation would be appreciated but is not required Altered source versions must be plainly marked as such
Definition: 03_licence.txt:54
fc::TransferStats::temporaryRemoteFilename
fc::Remote temporaryRemoteFilename
Temporary remote filename prior to being renamed.
Definition: FCTransferStats.hpp:122
serverIP
const std::string serverIP
Definition: example005.cpp:19
fc::Name::defaultDir
virtual const std::string & defaultDir() const =0
Get the default directory.
FCStateAndStats.hpp
fc::Options::setMultiThreaded
virtual Options & setMultiThreaded(const bool multi_threaded=true, const int count=3)
Toggle whether multiple threads are used for UDP transfers.
Definition: FCOptions.cpp:616
fc::ESslHandshakeMode
ESslHandshakeMode
Definition: FCOptions.hpp:63
fc::formatTimeDuration2
std::string formatTimeDuration2(const std::chrono::high_resolution_clock::duration &d)
Format the "time remaining" statistic as a common time string, such as HH:MM:SS.
Definition: FCTransferStats.cpp:431
fc::k4800_bps
@ k4800_bps
4800 bps
Definition: FCOptions.hpp:106
fc::Options::setCongestionControl
virtual Options & setCongestionControl(const bool enabled=false, const int aggression=2)
Toggle the FileCatalyst UDP congestion control algorithm.
Definition: FCOptions.cpp:470
fc::Remote::defaultDir
virtual const std::string & defaultDir() const
Get the default directory.
Definition: FCPath.cpp:461
fc::FileDetails::md5
std::string md5
Definition: FCUtils.hpp:153
fc::Options::setRetries
virtual Options & setRetries(const int count=0, const int wait_period_in_seconds=30)
Set the number of times that failed transfers should be retried and the length of the pause (in secon...
Definition: FCOptions.cpp:648
fc::TransferStats::target_local_filename
fc::Local target_local_filename() const
Returns the local filename which should be used.
Definition: FCTransferStats.hpp:493
fc::k2400_bps
@ k2400_bps
2400 bps
Definition: FCOptions.hpp:105
fc::FileDetails::username
std::string username
Definition: FCUtils.hpp:151
fc::k13_1_Gbps
@ k13_1_Gbps
13178880000 bps (this value requires a 64-bit integer)
Definition: FCOptions.hpp:163
fc::Control::nameExists
bool nameExists(const fc::Local &local)
Determine if a file or directory exists with the given name.
Definition: FCControl.cpp:815
fc::Exception::ftpReplyCode
fc::FtpServerReplyCodes ftpReplyCode
FTP server reply code.
Definition: FCException.hpp:167
fc::Name::separator
virtual const std::string & separator() const =0
Return the usual path separator, such as slash or backslash.
fc::k32_064_Mbps
@ k32_064_Mbps
32064000 bps
Definition: FCOptions.hpp:133
fc::Name::isRelative
virtual bool isRelative() const
Original name is relative, such as test.txt or ..\test.txt.
Definition: FCPath.cpp:183
fc::FtpServerReplyCodes
FtpServerReplyCodes
An enum to represent possible FTP server reply code.
Definition: FCUtils.hpp:64
fc::formatBytesOldStyle
std::string formatBytesOldStyle(const uint64_t bytes)
Format the payload bytes using IEC units (1024 bytes per "K"), similar to IEC but leave out the middl...
Definition: FCTransferStats.cpp:663
serverIP
const std::string serverIP
Definition: example006.cpp:18
fc::Name::str
virtual const std::string & str() const
Definition: FCPath.hpp:56
serverIP
const std::string serverIP
Definition: example004.cpp:27
fc::k431TemporarilyUnableToProcessSecurity
@ k431TemporarilyUnableToProcessSecurity
Definition: FCUtils.hpp:106
fc::TransferStats::unitSize
uint64_t unitSize
The unit (packet) size.
Definition: FCTransferStats.hpp:371
fc::libfcVersionStr
std::string libfcVersionStr()
Return the version string of the FC++ library.
Definition: FCUtils.cpp:25
username
const std::string username
Definition: example007.cpp:16
fc::k466_56_Mbps
@ k466_56_Mbps
466560000 bps
Definition: FCOptions.hpp:147
execute
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this execute
Definition: 03_licence.txt:30
stats
const fc::TransferStats * stats
Definition: example004.cpp:28
fc::Control::connect
Control & connect()
Connect the fc::Control object to the specified FTP server.
Definition: FCControl.cpp:204
fc::Control::getCurrentServerReplyCode
fc::FtpServerReplyCodes getCurrentServerReplyCode() const
Quickly retrieve the most recent result code received from the FTP server.
Definition: FCControl.cpp:115
fc::Control::download
Control & download()
Immediately download all files that have been queued for transfer.
Definition: FCControl.cpp:560
part
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license this restriction and the following must be included in all copies of the in whole or in part
Definition: 03_licence.txt:36
FCOptions.hpp
serverIP
const std::string serverIP
Definition: example003.cpp:18
fc::TransferStats::md5
EState md5
State of the MD5 verification.
Definition: FCTransferStats.hpp:82
fc::Local::Local
Local(const std::string &n)
Definition: FCPath.cpp:362
fc::k3G
@ k3G
3G, UMTS, 384 Kbps
Definition: FCOptions.hpp:232
fc::Control::getCurrentDirectory
std::string getCurrentDirectory()
Get the current directory from the FTP server.
Definition: FCControl.cpp:308
fc::TransferStats::kUnknown
@ kUnknown
Definition: FCTransferStats.hpp:50
fc::k250RequestedActionOkay
@ k250RequestedActionOkay
Definition: FCUtils.hpp:91
fc::Exception::createLogFile
static bool createLogFile(const bool truncateNow=false)
Create the fc_exception.log file used to record exceptions in FC++.
Definition: FCException.cpp:309
fc::TransferStats::tmp_filename_is_enabled
bool tmp_filename_is_enabled() const
Determine if this file stats object has the necessary filename information to use a temporary filenam...
Definition: FCTransferStats.hpp:536
fc::FDVec
std::vector< FileDetails > FDVec
A std::vector of fc::FileDetails.
Definition: FCUtils.hpp:158
fc::k215OperatingSystem
@ k215OperatingSystem
Definition: FCUtils.hpp:79
fc::Control::setStatsCallback
Control & setStatsCallback(fc::StatisticsCallback callback, void *userCtx=NULL)
Set a C-style callback function to be called once per second when file transfer statistics are update...
Definition: FCControl.cpp:225
fc::TransferStats::blocksCompleted
uint64_t blocksCompleted
The number of completed transfer blocks.
Definition: FCTransferStats.hpp:272
fc::k64KISDN
@ k64KISDN
ISDN, 64K.
Definition: FCOptions.hpp:176
fc::Control::operator=
Control & operator=(Control &&rhs)
C++11 move assignment.
Definition: FCControl.cpp:35
fc::k2400Modem
@ k2400Modem
2400 bps
Definition: FCOptions.hpp:169
fc::k933_12_Mbps
@ k933_12_Mbps
933120000 bps
Definition: FCOptions.hpp:151
fc::GlobalStateAndStats::GlobalStateAndStats
GlobalStateAndStats()
Definition: FCStateAndStats.cpp:34
LIBFCBITSIZE
#define LIBFCBITSIZE
Definition: FCVersion.hpp:39
freely
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license this restriction and the following must be included in all copies of the in whole or in and all derivative works of the unless such copies or derivative works are solely in the form of machine executable object code generated by a source language processor including commercial and to alter it and redistribute it freely
Definition: 03_licence.txt:48
fc::kOC3
@ kOC3
OC-3, 155.52 Mbps.
Definition: FCOptions.hpp:194
http
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost http
Definition: 03_licence.txt:27
fc::k211SystemStatus
@ k211SystemStatus
Definition: FCUtils.hpp:75
fc::k120ServiceReadyInMinutes
@ k120ServiceReadyInMinutes
Definition: FCUtils.hpp:68
fc::kDS2
@ kDS2
DS-2, 6.312 Mbps.
Definition: FCOptions.hpp:182
fc::Control::getDirectoryDetails
fc::FDVec getDirectoryDetails(const fc::Remote &directory=fc::Remote("."), const bool getMd5=false)
Return as much information as possible on files and directories from the server.
Definition: FCControl.cpp:386
fc::Logging::get_filename
std::string get_filename(const EType type)
Get the filename for the specified log type.
Definition: FCLogging.cpp:125
fc::k225DataConnectionOpen
@ k225DataConnectionOpen
Definition: FCUtils.hpp:82
fc::Name::simplify
virtual Name & simplify()
Attempt to simplify the path by removing double slashes and things like "../".
Definition: FCPath.cpp:33
fc::GlobalStats::totalNumberOfFilesReceived
uint64_t totalNumberOfFilesReceived
The total number of files downloaded from the server to the client.
Definition: FCStateAndStats.hpp:54
fc::k11_Mbps
@ k11_Mbps
11000000 bps
Definition: FCOptions.hpp:131
fc::Options::setEncryption
virtual Options & setEncryption(const bool enable_TCP_SSL=false, const bool enable_UDP_AES=true)
Toggle control channel and data channel encryption.
Definition: FCOptions.cpp:543
FCException.hpp
fc::Options::getStr
virtual std::string getStr(const bool verbose=false) const
Similar to fc::Options::getMap(), but formatted as a multi-line text string.
Definition: FCOptions.cpp:283
fc::TransferStats::kPartial
@ kPartial
TransferStats::type only part of the file needed to be transferred (transfer was resumed); see fc::Op...
Definition: FCTransferStats.hpp:66
fc::opensslVersionStr
std::string opensslVersionStr()
Determine the version of OpenSSL used by FC++.
Definition: FCUtils.cpp:37
fc::TransferStats::kMd5Skipped
@ kMd5Skipped
TransferStats::md5 file transfer was skipped since MD5 checksum indicates no changes; see fc::Options...
Definition: FCTransferStats.hpp:56
fc::k80211a
@ k80211a
802.11a, 54 Mbps
Definition: FCOptions.hpp:220
fc::Control::isLoggedIn
bool isLoggedIn() const
Quickly determine if the fc::Control object has completed the login process.
Definition: FCControl.cpp:83
fc::SummaryLog::removeLogFile
bool removeLogFile()
Remove the summary log file.
Definition: FCSummaryLog.cpp:58
fc::SummaryLog::truncateLogFile
bool truncateLogFile()
Truncate the summary log file, or create it if it didn't already exist.
Definition: FCSummaryLog.cpp:40
fc::TransferStats::packetLossEvent
uint64_t packetLossEvent
The total number of data packet loss events.
Definition: FCTransferStats.hpp:360
fc::TransferStats::operator+=
TransferStats & operator+=(const TransferStats &rhs)
Combine transfer statistics to get statistics over several files.
Definition: FCTransferStats.cpp:85
example004
int example004()
Definition: example004.cpp:58
fc::Exception::othererror
int othererror
on Windows, this is set to WSAGetLastError()
Definition: FCException.hpp:164
fc::TransferStats::timeTransferBegan
std::chrono::high_resolution_clock::time_point timeTransferBegan
The time when the file transfer began.
Definition: FCTransferStats.hpp:136
output_log_directory
static fc::Local output_log_directory("./")
username
const std::string username
Definition: example003.cpp:16
BASEFCVER
#define BASEFCVER
Definition: FCVersion.hpp:22
fc::Control::isFileCatalystServer
bool isFileCatalystServer() const
Quickly determine if the FTP server supports the FileCatalyst extensions.
Definition: FCControl.cpp:93
fc::k144IDSL
@ k144IDSL
IDSL, 144 Kbps.
Definition: FCOptions.hpp:178
fc::k6_75_Gbps
@ k6_75_Gbps
6750000000 bps (this value requires a 64-bit integer)
Definition: FCOptions.hpp:160
fc::Options::setMd5Verification
virtual Options & setMd5Verification(const bool enabled=false, const int mode=0)
Toggle MD5 verification.
Definition: FCOptions.cpp:525
fc::Control::getOptions
const fc::Options & getOptions() const
Get the current set of options.
Definition: FCControl.cpp:269
fc::k521DataConnectionCannotBeOpened
@ k521DataConnectionCannotBeOpened
Definition: FCUtils.hpp:118
fc::Options::setSocketOptions
virtual Options & setSocketOptions(const int socket_buffer_size_in_KiB=8192, const bool keepalive_enabled=true, const int keepalive_interval_in_seconds=55, const int keepalive_probes=9)
Set socket-based options.
Definition: FCOptions.cpp:502
fc::Options::setLocaldir
virtual Options & setLocaldir(const std::string &local_directory=".")
Base path used when accessing local files.
Definition: FCOptions.cpp:562
FCWindows.hpp
fc::Options::getMap
virtual fc::StrMap getMap(const bool verbose=false) const
Obtain a simple std::map representation of the options.
Definition: FCOptions.cpp:167
fc::GlobalStats::bitsPerSecondAverageTransferRate
uint64_t bitsPerSecondAverageTransferRate
The calculated average transfer rate.
Definition: FCStateAndStats.hpp:91
serverIP
const std::string serverIP
Definition: example007.cpp:18
fc::TransferStats::timePreviousBlockFinished
std::chrono::high_resolution_clock::time_point timePreviousBlockFinished
The time when the last block completed.
Definition: FCTransferStats.hpp:143
fc::Control::setNewOptions
Control & setNewOptions(const fc::Options &newOptions)
Set new options.
Definition: FCControl.cpp:281
username
const std::string username
Definition: example004.cpp:25
fc::FileDetails::filename
std::string filename
Definition: FCUtils.hpp:147
fc::TransferStats::packetsReceived
uint64_t packetsReceived
The total number of packets received from the server.
Definition: FCTransferStats.hpp:289
fc::k16_Mbps
@ k16_Mbps
16000000 bps
Definition: FCOptions.hpp:132
fc::k4G
@ k4G
4G, 100 Mbps
Definition: FCOptions.hpp:233
fc::TransferStats::clear
TransferStats & clear(const bool all=true)
Clear most or all of the transfer statistics.
Definition: FCTransferStats.cpp:32
fc::FileDetails::isDirectory
bool isDirectory
Definition: FCUtils.hpp:154
fc::GlobalStateAndStats::state
EState state
Global state of the FC++ library.
Definition: FCStateAndStats.hpp:130
fc::Remote::~Remote
virtual ~Remote()
Definition: FCPath.cpp:425
fc::Options::setBandwidth
virtual Options & setBandwidth(const uint64_t full_bandwidth_bps=fc::bps(fc::kZero_bps), const uint64_t slow_start_bandwidth_bps=fc::bps(fc::kZero_bps))
Set the maximum and initial transfer rates which will be requested from the FileCatalyst server.
Definition: FCOptions.cpp:440
fc::kOC48
@ kOC48
OC-48, 2,49 Gbps.
Definition: FCOptions.hpp:200
fc::k97_728_Mbps
@ k97_728_Mbps
97728000 bps
Definition: FCOptions.hpp:139
fc::Options::setSummaryLogging
virtual Options & setSummaryLogging(const bool enabled=false)
Write a summary log.
Definition: FCOptions.cpp:775
fc::k39_813_Gbps
@ k39_813_Gbps
39813120000 bps (this value requires a 64-bit integer)
Definition: FCOptions.hpp:164
fc::k452ActionNotTakenOutOfDiskSpace
@ k452ActionNotTakenOutOfDiskSpace
Definition: FCUtils.hpp:110
fc::TransferStats::kMd5Success
@ kMd5Success
TransferStats::md5 MD5 verification was successful
Definition: FCTransferStats.hpp:54
fc::k51_84_Mbps
@ k51_84_Mbps
51840000 bps
Definition: FCOptions.hpp:136
fc::kOC24
@ kOC24
OC-24, 1.24 Gbps.
Definition: FCOptions.hpp:198
fc::Control::clearGlobalStats
fc::Control & clearGlobalStats()
Clear all of the file transfer statistics.
Definition: FCControl.cpp:139
username
const std::string username
Definition: example005.cpp:17
fc::k80211ac
@ k80211ac
802.11ac, 1.3 Gbps
Definition: FCOptions.hpp:224
FCUtils.hpp
fc::TransferStats::getMap
fc::StrMap getMap(const std::string &header="") const
Format all the transfer statistics as easy-to-read text strings, and store into a map of strings.
Definition: FCTransferStats.cpp:142
FC_WHERE_PASS
#define FC_WHERE_PASS
Macros used to pass in several required parameters when instantiating a fc::Exception object.
Definition: FCException.hpp:42
fc::Name::name
virtual const std::string & name() const
The original name specified when this object was first instantiated.
Definition: FCPath.cpp:196
fc::kDS1
@ kDS1
DS-1, 1.54 Mbps.
Definition: FCOptions.hpp:181
fc::kMobileUploaderIos
@ kMobileUploaderIos
13 iPhone/iOS tool
Definition: FCOptions.hpp:41
fc::Logging::EType::kAll
@ kAll
Same as EType::kException + EType::kSummary + EType::kTrace (and EType::kDebug if available)
fc::TransferStats::requestRetransmit
uint64_t requestRetransmit
The total number of client-side requests made to the server to transmit or retransmit a specific pack...
Definition: FCTransferStats.hpp:313
fc::Remote::defaultRemoteDirectory
static std::string defaultRemoteDirectory
Definition: FCPath.hpp:174
fc::getCodeFromServerReply
fc::FtpServerReplyCodes getCodeFromServerReply(const std::string &reply)
Parse the given string and return the 3-digit FTP status code.
Definition: FCUtils.cpp:43
fc::Local
The class fc::Local is used to encapsulate local directories or files.
Definition: FCPath.hpp:141
FC_NOEXCEPT
#define FC_NOEXCEPT
Definition: FCWindows.hpp:58
FCSummaryLog.hpp
fc::k501ErrorInParametersOrArguments
@ k501ErrorInParametersOrArguments
Definition: FCUtils.hpp:114
fc::k44_736_Mbps
@ k44_736_Mbps
44736000 bps
Definition: FCOptions.hpp:135
disclaimer
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license this restriction and the following disclaimer
Definition: 03_licence.txt:35
FCPath.hpp
fc::k500CommandNotRecognized
@ k500CommandNotRecognized
Definition: FCUtils.hpp:113
fc::k6_312_Mbps
@ k6_312_Mbps
6312000 bps
Definition: FCOptions.hpp:128
fc::Exception::callstack
fc::StrVec callstack
call stack where the exception was created
Definition: FCException.hpp:174
fc::TransferStats::blocksRemaining
uint64_t blocksRemaining
The number of transfer blocks remaining.
Definition: FCTransferStats.hpp:281
fc::k3_5_Mbps
@ k3_5_Mbps
3500000 bps
Definition: FCOptions.hpp:126
fc::k1_Gbps
@ k1_Gbps
1000000000 bps
Definition: FCOptions.hpp:152
example003
int example003()
Definition: example003.cpp:21
fc::TransferStats::payloadBytesTransferred
uint64_t payloadBytesTransferred
The number of payload bytes.
Definition: FCTransferStats.hpp:194
fc::Control::getMostRecentFileStats
const fc::TransferStats & getMostRecentFileStats() const
Gets the most recent file transfer statistics.
Definition: FCControl.cpp:191
fc::formatTimeRecent
std::string formatTimeRecent(const std::chrono::high_resolution_clock::time_point &tp)
Format the time in an easy-to-read text string.
Definition: FCTransferStats.cpp:302
fc::kUdp
@ kUdp
2 UDP (FileCatalyst mode)
Definition: FCOptions.hpp:51
fc::kTcp
@ kTcp
1 TCP/FTP (original FTP mode)
Definition: FCOptions.hpp:50
fc::k4976_64_Mbps
@ k4976_64_Mbps
4967640000 bps (this value requires a 64-bit integer)
Definition: FCOptions.hpp:159
fc::k332NeedAccountForLogin
@ k332NeedAccountForLogin
Definition: FCUtils.hpp:98
fc::SummaryLog::add
void add(const std::string &msg)
Add a message to the summary log file.
Definition: FCSummaryLog.cpp:80
fc::k2xxOkay
@ k2xxOkay
any 2xx-style positive response
Definition: FCUtils.hpp:130
fc::k80211b
@ k80211b
802.11b, 11 Mbps
Definition: FCOptions.hpp:221
fc::Name::Name
Name(const std::string &n)
Definition: FCPath.cpp:23
fc::k252Echo
@ k252Echo
Definition: FCUtils.hpp:92
FileCatalyst.hpp
fc::GlobalStateAndStats::kConnecting
@ kConnecting
Definition: FCStateAndStats.hpp:123
fc::k33KModem
@ k33KModem
33.6 Kbps
Definition: FCOptions.hpp:173
fc::Logging::EType::kException
@ kException
C++ exceptions are logged with a backtrace.
fc::k14KModem
@ k14KModem
14.4 Kbps
Definition: FCOptions.hpp:171
fc::k135_Mbps
@ k135_Mbps
135000000 bps
Definition: FCOptions.hpp:141
fc::k533CommandProtectionLevelDenied
@ k533CommandProtectionLevelDenied
Definition: FCUtils.hpp:121
fc::TransferStats::kTransferFailed
@ kTransferFailed
TransferStats::transfer transfer did not complete
Definition: FCTransferStats.hpp:62
fc::k33_6_Kbps
@ k33_6_Kbps
36600 bps
Definition: FCOptions.hpp:110
fc::k3xxPending
@ k3xxPending
any 3xx-style response
Definition: FCUtils.hpp:131
fc::Local::defaultLocalDirectory
static std::string defaultLocalDirectory
Definition: FCPath.hpp:154
fc::Logging::EType::kNone
@ kNone
Calling fc::Logging::enable(kNone) is equivalent to calling fc::Logging::disable(kAll).
fc::k551RequestAbortedPageTypeUnknown
@ k551RequestAbortedPageTypeUnknown
Definition: FCUtils.hpp:124
fc::Control::nameDoesNotExist
bool nameDoesNotExist(const fc::Local &local)
Determine if a file or directory already exists with this name.
Definition: FCControl.hpp:1096
fc::Exception::text
std::string text
1-line exception text
Definition: FCException.hpp:172
fc::Control
Definition: FCControl.hpp:52
fc::k214HelpMessage
@ k214HelpMessage
Definition: FCUtils.hpp:78
fc::kE1
@ kE1
E1, 2.048 Mbps.
Definition: FCOptions.hpp:187
fc::Exception::what
virtual const char * what() const FC_NOEXCEPT
Inherited from std::exception to provide a very simple 1-line text string.
Definition: FCException.hpp:70
fc::k9953_28_Mbps
@ k9953_28_Mbps
9953280000 bps (this value requires a 64-bit integer)
Definition: FCOptions.hpp:161
fc::kOC768
@ kOC768
OC-768, 39.8 Gbps.
Definition: FCOptions.hpp:204
fc::TransferStats::metricsPacketsReceived
uint64_t metricsPacketsReceived
The total number of metric packets received.
Definition: FCTransferStats.hpp:343
fc::Exception::init
virtual Exception & init(FC_WHERE_DEF, const fc::FtpServerReplyCodes code, const std::string &reply, const std::string &description, const fc::StrMap &map)
Initialize the exception, including getting the call stack where the exception was generated.
Definition: FCException.cpp:220
fc::Control::deleteFile
Control & deleteFile(const fc::Remote &remoteFile)
Delete a remote file.
Definition: FCControl.cpp:887
fc::k2_75G
@ k2_75G
2.75G, EDGE, 236.8 Kbps
Definition: FCOptions.hpp:231
fc::ECommonBandwidth
ECommonBandwidth
Enumerations for several common bandwidth values.
Definition: FCOptions.hpp:97
fc::kDataConnectionReady
@ kDataConnectionReady
matches both k125DataConnectionAlreadyOpen and k150FileStatusOkayOpenDataConnection
Definition: FCUtils.hpp:135
fc::Remote::separator
virtual const std::string & separator() const
Return the usual path separator, such as slash or backslash.
Definition: FCPath.cpp:472
fc::TransferStats::dataPacketsReceived
uint64_t dataPacketsReceived
The total number of data packets received.
Definition: FCTransferStats.hpp:327
fc::TransferStats::kTransferStarted
@ kTransferStarted
TransferStats::transfer file transfer is in progress
Definition: FCTransferStats.hpp:60
fc::kOC96
@ kOC96
OC-96, 4.98 Gbps.
Definition: FCOptions.hpp:201
fc::TransferStats::kMd5Failed
@ kMd5Failed
TransferStats::md5 MD5 verification failed
Definition: FCTransferStats.hpp:55
fc::k230UserLoggedIn
@ k230UserLoggedIn
Definition: FCUtils.hpp:87
fc::kT5
@ kT5
T5, 400.35 Mbps.
Definition: FCOptions.hpp:191
fc::k220ReadyForNewUser
@ k220ReadyForNewUser
Definition: FCUtils.hpp:80
FC_WHERE
#define FC_WHERE
Macros used to pass in several required parameters when instantiating a fc::Exception object.
Definition: FCException.hpp:40
fc::k600_Mbps
@ k600_Mbps
600000000 bps
Definition: FCOptions.hpp:149
fc::kActive
@ kActive
server connects to client for transfer (not supported in FC++)
Definition: FCOptions.hpp:58
fc::k400_352_Mbps
@ k400_352_Mbps
400352000 bps
Definition: FCOptions.hpp:146
reproduce
FileCatalyst C API Written by Stéphane stephanecharette gmail info filecatalyst com Contact Unlimi Tech Software Inc for FileCatalyst and FC license details OpenSSL with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Boost free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this reproduce
Definition: 03_licence.txt:29
fc::GlobalStateAndStats::fileStatsMap
TransferStatsMap fileStatsMap
Track statistics on all individual file transfers.
Definition: FCStateAndStats.hpp:136
fc::Local::defaultLocalSeparator
static std::string defaultLocalSeparator
Definition: FCPath.hpp:155
fc::Remote::defaultRemoteSeparator
static std::string defaultRemoteSeparator
Definition: FCPath.hpp:175
fc::TransferStats::payloadBytesSkipped
uint64_t payloadBytesSkipped
The number of bytes that were skipped due to a successful auto-resume of a partial transfer.
Definition: FCTransferStats.hpp:227
fc::k234SecurityDataExchangeComplete
@ k234SecurityDataExchangeComplete
Definition: FCUtils.hpp:90
fc::kPassive
@ kPassive
client asks server for a port to which it connects to transfer files
Definition: FCOptions.hpp:59
fc::kOkay
@ kOkay
any response that matches 1xx, 2xx, or 3xx
Definition: FCUtils.hpp:133
fc::Control::prepareRecursiveDir
Control & prepareRecursiveDir(const fc::Remote &remote, const fc::Local &local)
Queue many files/directories for transfer.
Definition: FCControl.cpp:498
fc::k212DirectoryStatus
@ k212DirectoryStatus
Definition: FCUtils.hpp:76
fc::k2G
@ k2G
2G GSM, 14.4 Kbps
Definition: FCOptions.hpp:229
fc::k421ServiceNotAvailableClosingControl
@ k421ServiceNotAvailableClosingControl
Definition: FCUtils.hpp:102
fc::k229ServerEnteringExtendedPassiveMode
@ k229ServerEnteringExtendedPassiveMode
(|||port|)
Definition: FCUtils.hpp:86
fc::TransferStats::bitsPerSecondAverageTransferRate
uint64_t bitsPerSecondAverageTransferRate
Transfer rates measured in bits per second.
Definition: FCTransferStats.hpp:243
fc::Local::separator
virtual const std::string & separator() const
Return the usual path separator, such as slash or backslash.
Definition: FCPath.cpp:403