Jump to content
  • Advertisement


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


Message Guaranteed

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

I want to know how Dplay Message Guaranteed work? when use send message with DPSEND_GUARANTEED, why spend more time? if Dplay send this message more times untill receive a replay to this message? Does Send message function not return immediatly? thank every who can help me!

Share this post

Link to post
Share on other sites
Whether Send returns immediately or not depends whether u are calling Send with synchronous or async flag.

As for the guaranteed, it means when the message is broken up into small packets and send over the network, the message is guaranteed to appear on the other side..

The sad thing is if one packet is lost, the whole message is meaningless and is discarded..

So how does the sender knows if the recevier has got the whole message? The receiver must acknowledge to the sender that is has received the message so the sender will not keep sending it,

but what happens if the acknowledgement message from the recevier gets lost..then all the networking headaches come in, which you can find more details in any decent networking book.

This is all about network protocol. You only need to be bothered whether you want your application to wait until the receiver is guaranteed to have receive the message or not, by specifying the flags in the Send function

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!