No Documentation
Closed this issue · 1 comments
jdrescher2006 commented
This library looks good, though I have no idea how to use it because there is no documentation at all. The examples don't give a clue on how to use the upload function. I searched for hours but could not find anything, where to find the documentaion?
Callisto82 commented
Hi! There is an example for downloading a file. Uploading basically works the same. Here's a shortened version:
var client = new TftpClient("localhost");
var transfer = client.Upload("filename-on-server.pdf");
Stream fileToUpload = File.OpenRead(@"C:\temp\file-to-upload.pdf");
transfer.Start(fileToUpload);
Check the documentation for file downloads for more details:
https://github.com/Callisto82/tftp.net/blob/master/Tftp.Net.SampleClient/Program.cs
Does that help you or do you need more information?