Archived

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

Am I connected?

This topic is 5867 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
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''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