[David Easton] ''21 Oct 2004'' - Here is a simple [TFTP] client written purely in [Tcl], but requiring [TclUDP] and [Snit]. It supports octet (binary) and nearly supports netascii (ascii) - see limitations below. It has been tested by running it on [Windows] (Tcl 8.4.6) with [TFTP Server]. '''Limitations:''' * '''netascii mode''' does not translate end of line characters when receiving - this is because it needs to read the socket in binary mode to determine the number of bytes of data sent, but could do with reading it with -translation auto to automatically translate end of line characters. 'Is there a way to determine how many bytes were read from a socket prior to translation of end-of-line characters?' Another solution would be to send the data through another socket to translate it. '''See:''' * [TFTP Server] * [TFTP] Feel free to fix/improve this and use it however you wish. ---- ################################################################################ # # Package: tftp # # Description: # Implements a tftp client # # Provides the following functions: # # tftp create - Create a tftp handle with name # tftp create %AUTO% - Create a tftp handle # tftp list - List all open tftp handles # # connect [] - Change destination host [and port] # mode [ascii|binary] - Set or query mode # ascii - Change mode to netascii # binary - Change mode to octet # put - TFTP put # get - TFTP get # destroy - Destroy handle # # verbose - Toggle verbose mode # trace - Toggle packet tracing # rexmt