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

What is af_inet in socket?

0 Answers  


Is a socket a file?

0 Answers  


Are unix sockets faster than tcp?

0 Answers  


What is LILO?

2 Answers  


Where can a get a library for programming sockets?

1 Answers  






Why do not my sockets close?

1 Answers  


What exactly does SO_LINGER do?

1 Answers  


What is a socket connection?

0 Answers  


How do I get the port number for a given service?

1 Answers  


What are the types of sockets?

0 Answers  


How do I use TCP_NODELAY?

0 Answers  


What is the difference between close() and shutdown()?

1 Answers  


Categories