Author |
Message |
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: 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 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. _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps
Full source + JAR binary.
com.playSubSpace.DirectoryServer2.zip - 211.82 KB
File downloaded or viewed 46 time(s)
Last edited by Doc Flabby on Tue Jan 23, 2007 2:00 pm, edited 2 times in total |
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Jan 23, 2007 2:04 pm Post subject: |
|
|
|
|
corrected svn link and attached full source+bin
|
|
Back to top |
|
|
|