How can I be sure that UDP messages are received in order?



How can I be sure that UDP messages are received in order?..

Answer / chaitanya

You can't. What you can do is make sure that messages are processed in order by using a numbering system as mentioned in ``5.5 How can I be sure that a UDP message is received?''. If you need your messages to be received and be received in order you should really consider switching to TCP. It is unlikely that you will be able to do a better job implementing this sort of protocol than the TCP people already have, without a significant investment of time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Socket Programming Interview Questions

Why do I get connection refused when the server is not running?

1 Answers  


What is a socket address?

0 Answers  


How does a socket work?

0 Answers  


How should I choose a port number for my server?

1 Answers  


How can I tell when a socket is closed on the other end?

0 Answers  






What is the difference between connected and unconnected sockets?

1 Answers  


How does unix socket work?

0 Answers  


How do unix sockets work?

0 Answers  


How can I listen on more than one port at a time?

1 Answers  


What is a deep well socket?

0 Answers  


Can a single socket port be used for multiple applications?

0 Answers  


How do I convert a string into an internet address?

0 Answers  


Categories