Sign in to follow this  

Sockets (Datagram or SockStream)

This topic is 4250 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
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
TCP reliable and good for data transfer

UDP fast unreliable and good for games

Kuphryn

Share this post


Link to post
Share on other sites

This topic is 4250 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this