• Advertisement
Sign in to follow this  

Retrieving list of all players from the server in Client/Server session

This topic is 4827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I'm writing a small Client/Server app in DirectPlay. I want my client to get a list of all players in the current session. Is this possible and if so how do I do it? Cheers.

Share this post


Link to post
Share on other sites
Advertisement
Store each connection information in a list and update if the player disconnect and or after a timeout.

Gizz

Share this post


Link to post
Share on other sites
I have 2 way to solve.
First, use enumplayer from server and send back to the client by char*
or
when new player connect to server, add them into server's linked list. So, when the new player comes, send every player's name from linked list back to him and then also send the freshy player to everybody.

Niruth
http://www.deersoftware.com

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement