b298771 Gracefully handle the more obvious errors
~bitfehler pushed to ~bitfehler/hare-tftp git
cafaad4 Implement support for netascii encoding
~bitfehler pushed to ~bitfehler/hare-tftp git
This packages provides net::tftp
for TFTP support.
Currently, all primitives defined in RFC 1350 (TFTP protocol, revision 2) are supported.
A sample client is provided that can successfully read a file from or write a file to a remote server (requires hare-ev).
Support for additional RFCs might be added in the future: RFC 1782, RFC 1783, RFC 1784, RFC 1785, RFC 2347, RFC 2348, RFC 2349.
./client: non-interactive TFTP client
Usage: ./client [-h]
[-m <mode>]
[-p <port>]
[-r <filename>]
[-s <server>]
[-w <filename>]
[file]
-h: print this help text
-m <mode>: transfer mode (octet or netascii, default: octet)
-p <port>: server port (default: 69)
-r <filename>: read file from server
-s <server>: server name or address
-w <filename>: write file to server
Either -r
or -w
must be specified. If file
is provided, it is used as
input when writing or as output when reading. If not provided, input defaults
to stdin and output to stdout.
Patches, feedback, or questions can be directed to my public inbox: ~bitfehler/public-inbox@lists.sr.ht