Callisto82 / tftp.net

Implements the TFTP (Trivial File Transfer) protocol (client/server) in an easy-to-use C#/.NET library.
Microsoft Public License
81 stars 38 forks source link

How i can change the default timeout. #9

Closed abdrn1 closed 5 years ago

abdrn1 commented 5 years ago

How i can change the default timeout and tryouts of the TFtpClient during runtime.

Callisto82 commented 5 years ago

Before calling ITftpTransfer.Start(), just set ITftpTransfer.RetryTimeout and ITftpTransfer.RetryCount.

You are not able to change these settings after the transfer started. THose properties are also sent to the other party at the beginning oft he transfer and thus cannot change.