Jump to content
  • Advertisement

Archived

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

dachande

Am I connected?

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

Hey, Can someone give me a good method of checking if a connection has been completed with direct play 8 ? I do not want to start sending information to the server beforre I know a connection has been established (connected - not just found on a list). Or does DP just que the messages for me and send them once the connection has been established? I look forward to a reply, thanks for your time, Dachande

Share this post


Link to post
Share on other sites
Advertisement
Once you''re connected a "connectcomplete" event will be triggered. Unfortunatly on some firewalls this event is triggered but the connection is lost immediatly, so any sent after you think you''re connected will fail (and error out)... this might be solved with some kind of return value, but never looked into it yet

Share this post


Link to post
Share on other sites
I was unable to find connectComplete in the docs... would it be possible for you to give me the exact message name ?

Thanks,

Dachande

Share this post


Link to post
Share on other sites
I''m a VB programmer, but I''ve searched for you in the C++ docs...

[Contents]DirectPlay->DirectPlay c/c++ reference->callback functions->PFNDPNMESSAGEHANDLER

and there you have "DPN_MSGID_CONNECT_COMPLETE"

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!