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 |
Are unix sockets faster than tcp?
What is af_inet in socket?
Explain the TIME_WAIT state.
Why do we need sockets?
How to find other end of unix socket connection?
Why does the sockets buffer fill up sooner than expected?
What's the difference between impact sockets and regular sockets?
Why do I get EPROTO from read()?
What is socket address?
What is a socket address?
How do I convert a string into an internet address?
How do I get my server to find out the clients address / host- name?