View Single Post
Old 01-03-2005, 10:14 AM   #2
Hephos
Senior Member
 
Join Date: Feb 2003
Location: Sweden
Home MUD: www.sharune.com
Posts: 359
Hephos is on a distinguished road
Are you going to make an applet or application?

There are some good examples of how to make java networking in the tutorials at the java site ()

Check this link for example on how to make custom networking:


You will either be using java.io or java.nio. For a client side application the standard io would probably be preferred (easiest to get working). nio (new io) can be a bit more tricky, but *should* offer more scalable networking since it uses non blocking polling etc, and you wont need a thread for each user. For a client side application you only need a single thread anyways so it doesn't matter that much. For the server side though, you could end up with having a single thread for each user, lets say 400 threads running for the networking if you are using the standard java.io...

Feel free to send me some PMs if there is something in particular you need help with.

And if you are having doubts on java (for some reason lots of people do), check out the screenshots of our current client in development.
Hephos is offline   Reply With Quote