473,772 Members | 3,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7219
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

"PurpleServerMo nkey" <Pu************ ****@gmail.com> wrote in message
news:11******** **************@ d56g2000cwd.goo glegroups.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
PurpleServerMon key,
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


"PurpleServerMo nkey" 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:
PurpleServerMon key,
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


"PurpleServerMo nkey" 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
3740
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 architecture into .Net -- not looking to do it at this time, just to understand how I would achieve it. In the old environment, we had two classes, a client and a server class, that managed a data object. The server object knew how to interface with the...
5
3596
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 that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
3
5223
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, Malahal.
2
6967
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
1
3385
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 downloaded the tftpy-0.4.3 which have the TftpClient module and other good stuff, but I do not not know how to go about using python to connect to Tftp server Thank in advance for any help in pointing me in the right direction to get this thing...
3
3600
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! I'm working on setting up a shopping cart for a one-product web site, and I'm using HTML and CSS, with ASP for the shopping cart. The ASP takes the information from the form on the shopping cart, and formats it in to two e-mails: one for the company...
1
10285
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 can any one help me server was created in linux
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.