TFTP Server Class

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.
 
C

chanmm

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
 
G

Guest

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
 
P

PurpleServerMonkey

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

wintftp 0
TFTP server on Port 69 3
unknown TFTP server running 0
tftp disable 4
RIS error: TFTP timeout 1
hook all function calls to a class 2
Threads and the OleDbDataReader Class 3
routed RIS server 2

Top