|
SatCat5
|
Server for receiving file(s) using AeroFTP.
Definition at line 80 of file file_aeroftp.h.
#include <file_aeroftp.h>
Public Member Functions | |
| satcat5::io::Readable * | missing_blocks (u32 file_id) |
| Get a stream of missing blocks for the designated file-ID. More... | |
| bool | done (u32 file_id) const |
| Has the complete file been received successfully? | |
| void | resume (bool allow) |
| Allow server to resume transfers in progress? | |
Protected Member Functions | |
| AeroFtpServer (const char *work_folder, satcat5::net::Dispatch *iface, const satcat5::net::Type &typ) | |
| Constructor is only available to child classes. More... | |
| void | frame_rcvd (satcat5::io::LimitedRead &src) override |
| Callback for incoming packets. | |
Protected Attributes | |
| const std::string | m_work_folder |
| satcat5::net::Dispatch *const | m_iface |
| bool | m_resume |
| std::map< u32, satcat5::net::AeroFtpFile * > | m_files |
| satcat5::net::Type | m_filter |
| Incoming packet filter. | |
Private Attributes | |
| satcat5::net::Protocol * | m_next |
| Linked list of Protocols. | |
|
protected |
Constructor is only available to child classes.
| work_folder | Working folder for incoming files. |
| iface | Network interface pointer. |
| typ | Incoming packet type/port/etc. |
Definition at line 186 of file file_aeroftp.cc.
| Readable * AeroFtpServer::missing_blocks | ( | u32 | file_id | ) |
Get a stream of missing blocks for the designated file-ID.
Format mimics the "aux" argument to net::AeroFtpClient.
Definition at line 206 of file file_aeroftp.cc.