Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

sunbeam60

Recognizing a DirectPlay client in the same process as a DP server

This topic is 5193 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 all, Using DirectPlay9. In our game, the server is running in another thread. We are interested in finding out if a client that exists in the same Windows process has connected to this server. In other words, if the process first starts a server thread, then starts a client and connects to the server in that thread, we want to catch it. If a client is connecting from another computer, or another process, we are not interested in it. Is there any way to detect this using the DPNPLAYER_LOCAL and DPNPLAYER_HOST flag from the DPN_PLAYER_INFO. We can detect the the server''s player is created (using DPNPLAYER_LOCAL), but the DPNPLAYER_HOST flags seems set for every client that connects. Thanks for any help you can provide. Best regards Bjørn Toft Madsen

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
You could put 1-byte custom data in the player info structure when created in the same process as the server object. If the data exists, it''s local, otherwise it''s remote.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!