Books?

Or web articles or whatever, anything on beginning with networking java games and such. I have a book on networking with java, but it has nothing to do with games. All Ive found on the web is a 1997 gamasutra article which makes me angry. I also have the Developing Games in Java, but the networking chapter is awful, the code doesn’t even compile from that chapter, unless you get the updated code from the interwebs which isn’t explained at all.

Hi

How much of what you are trying to do is about learning about networking code, and how much about getting a game working on a network?

If it’s the latter, there are a few message passing type networking libraries around that are fairly simple to use. If you want MMO type comms then SGS is more than worth looking at.

If you are interested in learning about network code, then there are 2 options, old style io, one thread per client, and new style NIO, which is far more performant, but nasty to code too.

I implemented my own message passing library on top of NIO quite some time ago. It’s not perfect, and I don’t even use it myself any more, but if you want to take a look, it does cover the basics of nio code.

HTH

Endolf

Something that focuses more on the organization more than the how to send data between two computers would be more helpful. If I run into any trouble I can look things up in my other book(s) plus I know a few sites that have all the nio basics.

Ill read that library you linked too, but im not sure ill understand much of how to put it together.