For this semester in university, we have to write networked games (in java) in teams of 4. I have volunteered to work on the networking code for my team.
Reading up on java networking, it seems there are two UDP methods of networking:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/DatagramSocket.html This is a standard looking UDP socket, which can send packets to any IP address of any port.
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/DatagramChannel.html This is some sort of channel system, built on top of a udp socket. I'm not entirely sure what it offers, except the ability to only connect to one client, which isn't very useful in this case.
Are these the only options? Which is the best to use for a realtime multiplayer game with 4-8 players?