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 |
Why do I get EPROTO from read()?
How do I convert a string into an internet address?
What are raw sockets?
What is af_inet in socket?
What is the difference between close() and shutdown()?
How come select says there is data, but read returns zero?
Why do not my sockets close?
How can I set the timeout for the connect() system call?
When will my application receive SIGPIPE?
What is socket address with example?
What is active unix domain sockets?
What exactly does SO_REUSEADDR do?