The Embedded TFTP Server can store files in a generic File System.
All interface functions are located in TFTP_uif.c, which is a
user interface module. This module is in the
\Keil\ARM\RL\TCPnet\User folder. You must copy it to your
project directory and add it to your project.
The TFTP_uif.c module is preconfigured for RL-FlashFS, so no modifications are
required. You can modify this interface module to use another type of
file system or to use a different storage media such as a hard
disk.
The following functions are implemented in this module:
tftp_fopen() - open a
file for reading or writing.
tftp_fclose() -
close a file that was previously opened.
tftp_fread() - read a
block of data from a file to the TFTP data buffer.
tftp_fwrite() -
write a block of data from the TFTP data buffer to a file.
The following functions are optional in this module:
tftp_accept_host() - used
for the TFTP server access filtering. It is called when a TFTP
client is trying to connect to a TFTP server.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.