Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Documentation #32

Closed
jdrescher2006 opened this issue Aug 18, 2021 · 1 comment
Closed

No Documentation #32

jdrescher2006 opened this issue Aug 18, 2021 · 1 comment

Comments

@jdrescher2006
Copy link

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
Copy link
Owner

Callisto82 commented Aug 21, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants