|
SatCat5
|
Helper class representing a saving data to a particular file.
Definition at line 33 of file file_aeroftp.h.
#include <file_aeroftp.h>
Public Member Functions | |
| AeroFtpFile (const char *work_folder, u32 file_id, u32 file_len, bool resume) | |
| Create a new file object. More... | |
| void | frame_rcvd (u32 file_id, u32 file_len, u32 offset, u32 rxlen, satcat5::io::LimitedRead &data) |
| Handler for each received packet relating to this file. | |
| satcat5::io::Readable * | missing_blocks () |
| Get a stream of missing blocks for this file. | |
| bool | done () const |
| Has the complete file been received successfully? | |
| bool | error () const |
| Has there been an unrecoverable file-transfer error? | |
Protected Member Functions | |
| void | cleanup () |
| void | log (s8 level, const char *msg) |
Protected Attributes | |
| const std::string | m_name_data |
| const std::string | m_name_meta |
| const std::string | m_name_part |
| const u32 | m_file_id |
| const u32 | m_file_len |
| const u32 | m_bcount |
| unsigned | m_pcount |
| FILE * | m_data |
| FILE * | m_meta |
| u8 * | m_pending |
| satcat5::io::ArrayRead | m_status |
| AeroFtpFile::AeroFtpFile | ( | const char * | work_folder, |
| u32 | file_id, | ||
| u32 | file_len, | ||
| bool | resume | ||
| ) |
Create a new file object.
| work_folder | Path to working folder. |
| file_id | Numeric ID for the new file. |
| file_len | of the new file, measured in 32-bit words. |
| resume | Allow resume of a previous partial file? |
Definition at line 56 of file file_aeroftp.cc.