Empty 317 Base, Logging in and Packet Handling.
Well guys, I was bored yesterday and decided to make a server base from scratch. Everyone who said I could probably make a better server than winterLove were right.
Mine isn't the best, but I had to do it without any external libraries and I had no other suggestion other than multiple threading (I was told there were better ways however, but none were specific.)
Each thread has its own purpose.
-Accepting server connections
-Logging in
-Handling received packets
As you can see, I'm not the best Java coder out there. Infact, I'm not even good at Java.
But if anyone wanted to use this, here it is. It's no RS2D, but it's better than wL.
Download
Originally it was developed in Microsoft Visual J# 2005, but so other people could use it, I just copied the files, removed the "package *", and added a run/compile. It worked fine.
Again: This was not meant to be the best server out there, become close to RS2D, or anything like that. It was out of boredom.
Credits: Me - The whole thing, except for the following.
winterLove: Stream.JAVA and Cryption.JAVA, and how he handled incomming packets. That was the only time I looked at the winterLove source. (Originally I had planned on using a refactored one from a client, but not all methods were converted).
Almost forgot; C.odeworkshop: http://c.odeworkshop.info/wiki/index...itle=317_Login <-- The format for the login.
And again, forgot: http://java.sun.com/docs/books/tutor...entServer.html For teaching.
Oh and like I said in the title, the server has NOTHING but a server listener, a method for logging in, and packet handling. No other data is being sent, if I remember correctly.
~Lin