Callisto82 / tftp.net

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

Specify local interface for TFTP sockets #17

Open vorot opened 4 years ago

vorot commented 4 years ago

Sometimes, UDP packets can be routed via a wrong (especially wireless) interface causing problems in TFTP protocol. In order to prevent that, an option to specify the network interface is added.

Callisto82 commented 4 years ago

Hi! I like most of the pull request. However, why don't you provide the local address as an optional parameter in the TftpClient constructor? That's also where the remote address is supplied, so it would kind of make sense, wouldn't it?

vorot commented 4 years ago

Hi! First of all, thank you for the library.

However, why don't you provide the local address as an optional parameter in the TftpClient constructor?

There are several reasons