tftp

tftp

Module

tftp

Module summary

Trivial FTP.

Description

This is a complete implementation of the following IETF standards:

  • RFC 1350, The TFTP Protocol (revision 2)
  • RFC 2347, TFTP Option Extension
  • RFC 2348, TFTP Blocksize Option
  • RFC 2349, TFTP Timeout Interval and Transfer Size Options

The only feature that not is implemented is the "netascii" transfer mode.

The start/1 function starts a daemon process listening for UDP packets on a port. When it receives a request for read or write, it spawns a temporary server process handling the transfer.

On the client side, function read_file/3 and write_file/3 spawn a temporary client process establishing contact with a TFTP daemon and perform the file transfer.