Skip to main content
GameDev.net gamedev.net
🔒 Locked

Am I connected?

Started by dachande Nov 15, 2001 at 5:20 PM 3 replies 450+ views
Original Post
dachande
dachande
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
anjee
anjee
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
dachande
dachande
I was unable to find connectComplete in the docs... would it be possible for you to give me the exact message name ?

Thanks,

Dachande
anjee
anjee
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"
dachande
dachande
Thank you kindly Mr. VB Programmer =)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.