TFTP Server Class

  • Thread starter Thread starter PurpleServerMonkey
  • Start date Start date
P

PurpleServerMonkey

First off I'd like to ask if anyone knows of a multi-threaded Open
Source TFTP Server class written in C#?

I don't really want to re-invent the wheel but after searching the net
for sometime I haven't been able to find an existing TFTP Server class
that provides read and write functionality.

As an existing class hasn't been found I've started to write my own and
wanted to seek the groups opinion.

So far I've created a class that implements a UDP Server, once a TFTP
Read or Write request comes in on port 69 a new thread is spawned. This
thread creates a socket and begins the transfer with the client.

This appears to match the RFC for TFTP quite well but I can't help but
wonder if there's a better way to do this.

Any ideas or comments are welcome.
 
Hello Monkey, didn't actually see what problem you are facing but I think as
you said it works, the speed is what you expected and port 69 do no harm to
your network I think you got it.

chanmm
 
PurpleServerMonkey,
Implementing the full TFTP spec is not trivial; I've never been able to find
an "open source' Implementation. nSoftware has one in their IPworks product,
and Abderaware also has one that includes source code for a reasonable price.
Peter
 
Thanks for the info.

Guess I just wanted a sanity check of the structure, in most other
cases I wouldn't create a socket per connection but given the nature of
TFTP and the fact that I want it to be multi-threaded I don't see a
better way around it.

Anyway once I'm happy with the code and it's been tested a bit I'll put
it up on the web, perhaps it will be useful to someone else.
 
Back
Top