I am using DirectPLay and visual c++.net to program a simple network game. At the moment the Server.SendTo sends to the PlayerID::AllPLayers, I would like to be able to see all the current players connected, create player groups and send to player groups. I have seen some code in the MSDN and I seen the methods in the IDE but can't work out how to retrieve the player ids. The game successfully creates a host, and mulitple clients can connect, but I want to create multiple games sessions on one host. At the moment all clients get all messages.
Help would be much appreciated, spent hours on this one issue.