How can I be sure that UDP messages are received in order?
Answer Posted / 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 View All Answers
Can a single socket port be used for multiple applications?
Is tcp or unix socket faster?
Is socket a hardware or software?
What is the purpose of socket?
What is a deep well socket?
How many socket connections can a server handle?
How does unix socket work?
What exactly is a socket?
What is a socket set used for?
What is socket programming in java?
Can multiple clients connect to same socket?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
Why do I get EPROTO from read()?
What is a socket connection?
What is af_inet in socket?