BetterOS.org : An attempt to make computer machines run better


HOME | BETTER LINUX | GAMES | SOFTWARE | TUTORIALS | ABOUT | LINKS | FORUM | WEB LOG |

Software: INFO | SERVERS | LUCK LIBRARY | PSF LIBRARY | HTTP_P2P | KSEC CLOCKS | XCB SAVER | XCB CLOCK |

Software

TFTP Server:

System Requirements:
- Linux
- C Compiler
License: Beerware
I wrote this TFTP server originally to serve files to a small ARM powered device for netbooting. Since then, I have added enough features to make it fully compliant with the related RFC document.
The server works nicely for netbooting and for use with regular TFTP clients. It is single threaded and the code is short, simple, and in one single file of only 280 lines. It may be the shortest and simplest TFTP server available, however, I have no evidence to back up that claim, and it probably is not true at all.
That being said, there is room for improvement, it could be made simpler and I may do that in the future, or you may do it. Have fun!

Source (.c file)



HTTP Server:

System Requirements:
- Linux
- C Compiler
License: Beerware
I wrote this HTTP server for no reason at all. It works with HTTP 1.0 only, and does not support any other features. I do not claim that it is good, and it is definitely not suitable for hosting a website.
It is single threaded, and I think it will fail with large files. My website does not run on it, and yours probably won't either. However, it might someday be useful. The source code is 149 lines, including comments.

Source (.c file)



DNS Server:

System Requirements:
- Linux
- C Compiler
License: Beerware
This one is my personal favorite. It makes no attempt to comply with any standard what-so-ever. It works with only 2 types of DNS requests, and ignores all others. It also lies to clients, all the time.
However, I used this one more than the others because it is awesome. I designed this server to redirect VOIP phones from their official server to my custom-built server without any modification to the phone. So basically, it is designed for hacking phones to circumvent the service provider. I used it to place calls without the official server, and to install unofficial firmware on phones.
This one is also a bit heavier, it weighs in at about 300 lines of code, and requires a configuration file. However, I originally used a simpler version which was about 100 lines shorter and required no configuration file, simply redirecting everything to the same, hard-coded address. The version with the configuration file is much more useful.
The configuration file is read in a stupid way, it just looks for a file called "config" in whatever directory you ran the executable from.

Source (.c file)
Sample Configuration File (config file)