Page 1 of 1

WPN Lister

Posted: Wed Dec 01, 2004 3:56 am
by quicksilver
KM has released the "Web to Mx" prog he used on the Mxtools site .
WPN Lister

This is a program that connects to the WinMX Network and loads the channel list over and over, saving it to a file as it runs. I have also included a sample php script that produces a web page containing the channel list, and 2Sen's Web Chat applet so users can join the rooms from that listing... enjoy!
Get it from here.

http://www.kingmacro.net/?section=get&file=wpnlist.zip

For those who like a little more detail.
The program generating the web chat listings is a simple program that loops endlessly on 5 secondary connections loading room lists, then it simply saves the file containing any rooms its seen in the last 5 minutes, I found that multiple connections was better listings than a single one (like I assume 2sen uses) and of course the constant looping around was just to keep it as fresh as possable.

Unfortunately its a killer on the servers bandwidth, the constant 6-8k/s download isn't too bad but when someone wants to load the channel list its a good 900k file (thank god for HTTP supporting compression) and the CPU load of loading the list and sorting it etc when the user requested it does cause everything to stop for a few seconds, thats why I decided not to keep it on the new site.

An interesting peice of code KM , thanks to you, (and Nushi) for making it available.

Posted: Fri Dec 10, 2004 6:14 pm
by KM
http://www..cricketmx.com/webchat/

not working yet... :-D

Posted: Fri Dec 10, 2004 7:16 pm
by quicksilver
I think Battye likes the forum as it is ,lol
I did read from the above about the bandwidth munching capability, and that alone would probably make the decision. :?

Posted: Sat Dec 11, 2004 3:21 am
by battye
Yeah that was kinda my worry Quick, also the CPU usage :(
KM, can you give an estimate figure?

Posted: Sat Dec 11, 2004 9:17 pm
by KM
CPU usage is mainly an issue with when someone loads it, its not too much but on my 666Mhz server is took about 3-4 seconds for the script included with it to generate the pages (no doubt the script could be made more efficient as well) thats 3-4 seconds of 100% CPU usage... but thats only the php script that did that, the lister program is barely noticed, unless you look at a banndwidth graph anyway, but most people wouldn't notice 10-15k/s of download bandwidth