I may add protected in the next version. When it comes to the gadgets, I will probably just use enumeration.oryaaaaa wrote:cool !
I am reading your source now.
Please add "Protected" in procedure, use gadget #PB_Any.
...
Hey guys, just want to let you know that im still working on this:
Here is some features of the next version:
- Built in http download manager with stop/continue support
- Starting code for the bittorrent protocol (will not be complete until few versions)
- Quite a few bug fixes and code cleanup
Here is some features of the next version:
- Built in http download manager with stop/continue support
- Starting code for the bittorrent protocol (will not be complete until few versions)
- Quite a few bug fixes and code cleanup
I love Purebasic.
SFSxOI wrote:The link in the post doesn't work...I wonder if he
s using the GNU Multi-Purpose HTTP Download Server ?

Last edited by Heathen on Tue Oct 13, 2009 4:50 am, edited 2 times in total.
I love Purebasic.
Re: Open Source Multi-Purpose HTTP Download Server
Do you save bands directly into a file? Then why don't you set FileBuffer to zero? Even if the program crashes, the bans would be saved. Use FileBufferSize(#File, 0)Heathen wrote:- Bans are saved after the program ends, so crashes will remove all new bans, may change this later.
In former times, I wanted to create a HTTP-Server on my own. I think I'll do this somewhere in the future. May I use this server as my template?
PB 4.30
Code: Select all
onErrorGoto(?Fred)
Re: Open Source Multi-Purpose HTTP Download Server
The bans are saved after the window get's closed because that's when the procedure get's called, I believe I did that to help prevent speed loss during an attack.AND51 wrote:Do you save bands directly into a file? Then why don't you set FileBuffer to zero? Even if the program crashes, the bans would be saved. Use FileBufferSize(#File, 0)Heathen wrote:- Bans are saved after the program ends, so crashes will remove all new bans, may change this later.
In former times, I wanted to create a HTTP-Server on my own. I think I'll do this somewhere in the future. May I use this server as my template?
Also, you can use this code for pretty much whatever you want, just make sure to read over the license.

I love Purebasic.
Well, maybe you could change the ban system in order to do the trick I told you.
Furthemore, I'll read your licence, of course, but I do not intend to copy yoour code and/or single procedures of it. I'd like to adopt some ideas and functions that I could implement into my own HTTP-Server.
Furthemore, I'll read your licence, of course, but I do not intend to copy yoour code and/or single procedures of it. I'd like to adopt some ideas and functions that I could implement into my own HTTP-Server.
PB 4.30
Code: Select all
onErrorGoto(?Fred)
I did it that way for a reason. It has nothing to do with not knowing about the file buffer. Setting the buffer to 0 wouldn't really make a difference since the procedure isn't called into the program ends anyhow. I did it that way when I added the attack protection to try to prevent some speed loss. Besides, I haven't worked on this for a long time and have pretty much considered it dead. I may decide to rewrite some of it in the future, but right now I have a really big project I have been working on so I probably won't find time anytime soon.AND51 wrote:Well, maybe you could change the ban system in order to do the trick I told you.
I love Purebasic.