SatCat5
satcat5::eth::AeroFtpServer Class Referencefinal

Detailed Description

Server for receiving file(s) using AeroFTP over Ethernet.

Definition at line 118 of file file_aeroftp.h.

#include <file_aeroftp.h>

Inheritance diagram for satcat5::eth::AeroFtpServer:
[legend]
Collaboration diagram for satcat5::eth::AeroFtpServer:
[legend]

Public Member Functions

 AeroFtpServer (const char *work_folder, satcat5::eth::Dispatch *eth, const satcat5::eth::MacType &type=satcat5::eth::ETYPE_AEROFTP)
 
satcat5::io::Readablemissing_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

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::Protocolm_next
 Linked list of Protocols.
 

Member Function Documentation

◆ missing_blocks()

Readable * AeroFtpServer::missing_blocks ( u32  file_id)
inherited

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.


The documentation for this class was generated from the following files: