Skip to content
Commit 3211ab90 authored by Sebastien Lorquet's avatar Sebastien Lorquet Committed by Gregory Nutt
Browse files

apps/netutils/tftpc: This commit modifies the TFTP client functions to use a...

apps/netutils/tftpc:  This commit modifies the TFTP client functions to use a data read/write callback instead of a file.This allows TFTP to write to arbitrary destination (in my case, a MTD device - for firmware update).  Two new functions are introduced for this, named tftpget_cb and tftpput_cb. They are just made of most of the existing code.  The previously existing tftpget/tftpput functions are now wrappers on the new ones, with callbacks that read/write from files, so my modifications are backwards compatible with existing applications, eg the associated nsh commands dont need to be changed.
parent 0b3ce51a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment