This is a simple but complete TFTP server capable to run on MBED-OS5. It can receive and send files and listens on port 69. Please notice that it supports only octet (raw 8 bit bytes) mode transfers. It is part of the LaOS (Laser Open Source) project: http://www.laoslaser.org/
Fork of TFTPServer by
Import programTFTPServerTest
This is an example code for using the TFTPServer library.
A simple TFTP server. NOTE: Supports only octet (raw 8 bit bytes) mode transfers.
Diff: TFTPServer.h
- Revision:
- 2:f7c0fbc8c5aa
- Parent:
- 1:9c973065a97e
--- a/TFTPServer.h Fri Mar 16 19:22:10 2018 +0000 +++ b/TFTPServer.h Tue Mar 20 17:31:42 2018 +0000 @@ -3,7 +3,7 @@ * Simple TFTP server * * Copyright (c) 2011 Jaap Vermaas - * Modified for MBED-OS5 by Zoltan Hudak 2018 + * Modified by Zoltan Hudak 2018 for MBED-OS5 * * This file is part of the LaOS project (see: http://wiki.laoslaser.org * @@ -23,16 +23,16 @@ * Minimal TFTP Server * * Receive and send files via TFTP * * Server handles only one transfer at a time - * * Supports only binary mode transfers, no (net)ascii + * * Supports only octet (raw 8 bit bytes) mode transfers * * fixed block size: 512 bytes * * http://spectral.mscs.mu.edu/RFC/rfc1350.html * * Example: * @code - * TFTPServer *srv; + * TFTPServer *server; * ... - * srv = new TFTPServer(); + * server = new TFTPServer(); * ... * @endcode *