Server Help

Misc User Apps - Java SS Directory Server (broken)

Doc Flabby - Tue Jan 23, 2007 10:47 am
Post subject: Java SS Directory Server (broken)
Thought i would share this as i don't seem to be getting anywhere with it. Someone someday might find the code useful. This was my first real programming attempt in java. I used a couple of very very useful twcore classes. ByteArray fixes so many thing wrong in java that make it crappy for networking apps much <3 to whoever wrote that class.

At the moment directory updates and pings work. No encryption is supported. The problem comes with continuum tongue.gif and it trying to download directory update downloads.

When a client trys to download the update gets garbled somehow and im not sure why, i think it is an error in how i am implementing the reliable protocol but i can't see it. It also can sometimes cause what i think is a buffer overflow in continuum. It causes a GPF sometimes neways. It works fine if there is only one or two entries in the directory as soon as the number of entries gets too large to fit in one packet it goes wrong. I've pretty much abandoned this project for the moment neways.

I was aiming to design this server to use less cpu than the tradition "poll" based servers. Ie it sleeps untill it received a packet. Processes packet. Goes back to sleep. As opposed to check every 5 milli seconds for a packet (which wastes cpu cycles)

Source is below. svn is accessable here: svn://playsubspace.com/pss/

Code is public domain. you can use if for anything you want.
Bak - Tue Jan 23, 2007 11:14 am
Post subject:
I can't find the source on that http link... could you attach it here?
Doc Flabby - Tue Jan 23, 2007 2:04 pm
Post subject:
corrected svn link and attached full source+bin
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group