Jump to content
  • Advertisement

Archived

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

stefu

Using port for addressing in DirectPlay8

This topic is 6261 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

Hello, This is quite a begginner question. I have a workin peer-peer wrapper class for DP8. Before I used flags OKTOQUERYFORADDRESSING (EnumHosts() and Host()), but now I managed to set up address correctly myself using IDirectPlay8Address::AddComponent(). My question is just the meaning of ports. DP never asked any port values and now when I setup address myself, I don''t need to se ports. I can set the port value for DirectPlay8Address, but it''s not needed. Does DP use some default port or does it use all available ports?

Share this post


Link to post
Share on other sites
Advertisement
It picks a port, I forget which one. There''s a negoiation port as well, if I remember correctly. If any DP game is running, DP can connect to that port to ask which specific port a game is running on (using that GUID you had to make).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!