SatCat5
satcat5::udp::TftpClient Class Reference

Detailed Description

A TFTP client makes request(s) to a remote server.

See also
udp_tftp.h, udp::TftpServerCore. This implementation uses user-provided stream objects for I/O. For file I/O, see TftpClientPosix (hal_posix/file_tftp.h).

Definition at line 110 of file udp_tftp.h.

#include <udp_tftp.h>

Collaboration diagram for satcat5::udp::TftpClient:
[legend]

Public Member Functions

 TftpClient (satcat5::udp::Dispatch *iface)
 Attach this client to a network interface.
 
void begin_download (satcat5::io::Writeable *dst, const satcat5::ip::Addr &server, const char *filename)
 Download a file from server to a Writeable stream.
 
void begin_upload (satcat5::io::Readable *src, const satcat5::ip::Addr &server, const char *filename)
 Upload data from a Readable stream to the server.
 
bool active () const
 Is there an active transfer?
 
u32 progress_blocks () const
 Transfer progress, measured in 512-byte blocks.
 
u32 progress_bytes () const
 Transfer progress, measured in bytes.
 

Protected Attributes

satcat5::udp::TftpTransfer m_xfer
 

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