View Single Post
  #8 (permalink)  
Old February 10th, 2006
gubatron gubatron is offline
I'm an Android
 
Join Date: March 17th, 2005
Location: Earth for now
Posts: 83
gubatron is flying high
Default What it does.

As of now, what I posted is just a part of what I'll need to build a simple Magnet Server Moldarin.

I just intend to have this:
-> MySQL DB that has a table with:
- SHA1 Hash
- Full File Path
- 1 bit saying if its shared or not

-> PHP Script that reads HTTP headers and watches out for Magnet requests coming from Gnutella Clients. Then looks up on the MySQL table for the given hash, if the file is there, serve it or serve the requested byte ranges. If it's sent over 50% of the file, then possibly have another table holding Alternate Locations for the files and last time seen. This way when serving a file, you could send Alt-Loc headers, but I still have to read more on the Gnutella Protocol, I'm LimeWire's Web Dev, and I'm getting more into Gnutella as time goes by.

Hopefully one I'll finish a PHP Host Gnutella crawler I was building and will also release it, or maybe I'll just end up doing it in Python just for the hell of it.
Reply With Quote