473,395 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

TFTP Server Class

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.

Jun 29 '06 #1
3 7195
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" <Pu****************@gmail.com> wrote in message
news:11**********************@d56g2000cwd.googlegr oups.com...
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.

Jun 29 '06 #2
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"PurpleServerMonkey" wrote:
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.

Jun 29 '06 #3
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.

Peter wrote:
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"PurpleServerMonkey" wrote:
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.


Jun 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
3
by: malahal | last post by:
Is there a TFTP client python module? I just need "get file" feature. I came across two implementations on WEB, but they are kind of unfinished (got the code from some mailing list!). Thanks,...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: vc4free | last post by:
Hello Everyone, I am trying to write a simple program to download files from tftp server, but I am have a very difficult time doing so because I am very very new to python. I have...
3
by: graphicssl | last post by:
Okay, so first of all, I'm a designer first and a light coder second (I'm only really trained with HTML and CSS). So I apologize for having to post about something that's probably super-trivial! ...
1
by: unknown198790 | last post by:
actually i created tftp server.server was created successfully but when i try to execute the following it say file not found tftp 192.168.0.1 tftp> put j.txt error code 1: file not found tftp...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.