A little off topic here, but I figured you guys could me with this. My next game is heading for the multiplayer world, but apparently TCP causes too much lag. I'm trying to implement UDP (datagram) in my networking code, but can't seem to figure it out. Anyone know of a good resource/tutorial about NIO stuff? I've googled it every way I can think of.
BTW, my main problem is that you can only accept() a new client via TCP Sockets - so I'm trying to figure out how to open a Datagram socket off of that once the client has been included.