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 connection refused when the server is not running?
What is a socket address?
How does a socket work?
How should I choose a port number for my server?
How can I tell when a socket is closed on the other end?
What is the difference between connected and unconnected sockets?
How does unix socket work?
How do unix sockets work?
How can I listen on more than one port at a time?
What is a deep well socket?
Can a single socket port be used for multiple applications?
How do I convert a string into an internet address?