|
SatCat5
|
ServerCore is the base class that handles TFTP network functions.
However, it depends on children to define the I/O functions.
Definition at line 149 of file udp_tftp.h.
#include <udp_tftp.h>
Public Member Functions | |
| bool | active () const |
| Is there an active transfer? | |
Protected Member Functions | |
| TftpServerCore (satcat5::udp::Dispatch *iface) | |
| Users cannot instantiate this class directly. More... | |
| virtual satcat5::io::Readable * | read (const char *filename)=0 |
| Child class MUST override these methods. | |
| virtual satcat5::io::Writeable * | write (const char *filename)=0 |
| void | frame_rcvd (satcat5::io::LimitedRead &src) override |
| Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value. More... | |
Protected Attributes | |
| satcat5::udp::Dispatch *const | m_iface |
| satcat5::udp::TftpTransfer | m_xfer |
| satcat5::net::Type | m_filter |
| Incoming packet filter. | |
Private Attributes | |
| satcat5::net::Protocol * | m_next |
| Linked list of Protocols. | |
|
explicitprotected |
Users cannot instantiate this class directly.
See "TftpServerSimple" for an example implementation.
Definition at line 441 of file udp_tftp.cc.
|
overrideprotectedvirtual |
Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value.
The child class SHOULD read the frame contents from the provided "src" object, which is only valid until the function returns.
To send a reply:
The child class MUST override this method.
Implements satcat5::net::Protocol.
Definition at line 454 of file udp_tftp.cc.