Jump to content
  • Advertisement
Sign in to follow this  
Xeile

Sockets (Datagram or SockStream)

This topic is 4404 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 all, I planning to use sockets to bind all classes to the global event class. All classes can register for events. All these classes instantiated in the same process, so in other words data remains on the same PC. Now my question: If choosing Datagram as sockettype, is it a 100% reliable connection. Does the packet always arrives. I know when you communicate with an other PC you cannot be sure. Regards, Xeile

Share this post


Link to post
Share on other sites
Advertisement
The UDP datagram is not reliable at the transport-level. You must add onto the datagram yourself in order to add a layer of redundancy.

Or you could use the TCP stream. The stack implementor's software handles the redundancy for you. (ie: winsock on windows, sockets on bsd, linux, unix)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!