Page 1 of 2

...

Posted: Fri Oct 27, 2006 8:43 pm
by Heathen
File removed

Posted: Fri Oct 27, 2006 8:47 pm
by Shannara
Thanks for the file. Since it's not in the post, to everybody else ... this is an HTML web server used for downloading, I gathered from reading the source.

Thanks again!

Re: Open source http download server

Posted: Fri Oct 27, 2006 8:49 pm
by Heathen
thanks, I will add that to the title :P

Posted: Fri Oct 27, 2006 8:55 pm
by Heathen
Fixed a crash when trying to lookup an ip when no download is selected.

Posted: Fri Oct 27, 2006 8:59 pm
by Shannara
A pure download server is majorly kickass. For instance. A game updating client can check the server for updates. It's also great for image hosting and the like ... the uses are almost endless.

Posted: Fri Oct 27, 2006 9:05 pm
by Heathen
:) At first I wrote this program to send FLV videos like youtube but decided to make it a full fledged multipurpose download server. I havent tested the program update functionality, so if someone can do that for me, I would appreciate it. Just send a regular http header with "program-version: " in the header and add "<programname.ext> = <version>" to 'versions.txt' :)

Ps: made a small update which rewords some of the comments

Posted: Fri Oct 27, 2006 9:26 pm
by Shannara
When I head home, after going out on a date with the Mrs ;) I'll give it a try. btw: There is another thread found @ http://www.purebasic.fr/english/viewtopic.php?t=24101 . A DownloadToMemory chunk of code. Might be useful for creating an "updator" client to go with this server :)

Posted: Fri Oct 27, 2006 11:59 pm
by Heathen
After some thought, ive decided to add a download manager to the program, i'll probably add this after version 1.0.

Getting ready to upload version 0.2

Changes:

- Added basic attack protection with auto-ban
- Fixed some bugs
- Added 2 new mutices and cleaned up some of the other mutex code
- Optimized the Receive procedure.

Posted: Sat Oct 28, 2006 12:37 pm
by Inf0Byt3
I am working on an antivirus\antispyware library :) it has heuristic detection, etc. and if you want you can incorporate it in the server :D.

Posted: Sat Oct 28, 2006 12:40 pm
by Heathen
Inf0Byt3 wrote:I am working on an antivirus\antispyware library :) it has heuristic detection, etc. and if you want you can incorporate it in the server :D.
Sounds cool! Perhaps I can add it when I add the download client :)

Updated to 0.2

Changes:

- Added basic attack protection with auto-ban
- Fixed some bugs
- Added 2 new mutices and cleaned up some of the other mutex code
- Optimized the Receive procedure.
- Removed a pointless mutex lock in the send thread
- Optimized the send thread a bit

Posted: Sun Oct 29, 2006 2:07 am
by Heathen
Shannara wrote:When I head home, after going out on a date with the Mrs ;) I'll give it a try. btw: There is another thread found @ http://www.purebasic.fr/english/viewtopic.php?t=24101 . A DownloadToMemory chunk of code. Might be useful for creating an "updator" client to go with this server :)
:P

Posted: Mon Oct 30, 2006 7:44 am
by Pantcho!!
Looks great!
Maybe it is the time to get a real SERVER with threads working!

Good work, but can you please comment your code?
I am more a PB 3.94 and just starting out with PB v4 and your code
looks great but its density is high and no commentery.

If you want a really really good example of http server threaded check out this POWERBASIC source code made years ago - http://www.powerbasic.com/support/forum ... 00085.html

P.S does the server support resume?
and making a cgi exe support should be easy... it somthing has to do with PIPE.

Posted: Mon Oct 30, 2006 3:01 pm
by Heathen
Pantcho!! wrote:Looks great!
Maybe it is the time to get a real SERVER with threads working!

Good work, but can you please comment your code?
I am more a PB 3.94 and just starting out with PB v4 and your code
looks great but its density is high and no commentery.

If you want a really really good example of http server threaded check out this POWERBASIC source code made years ago - http://www.powerbasic.com/support/forum ... 00085.html

P.S does the server support resume?
and making a cgi exe support should be easy... it somthing has to do with PIPE.
Read the features list, it already has threads and resume support :P I doubt I will add CGI support since this is just a download server for now. I will probably add more comments in a future version.

Posted: Mon Jan 08, 2007 8:51 am
by Heathen
Updated to 0.2b very small update... 3 months later :lol:

Posted: Tue Jan 09, 2007 11:16 pm
by oryaaaaa
cool !

I am reading your source now.
Please add "Protected" in procedure, use gadget #PB_Any.