Advertisement

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

Started by March 04, 2004 07:39 PM
0 comments, last by sunbeam60 20 years, 11 months ago
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
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.

This topic is closed to new replies.

Advertisement