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 does the sockets buffer fill up sooner than expected?
What is the purpose of socket?
How do Sockets Work?
How many socket connections can a server handle?
What is socket address with example?
What is socket address?
How can I put a timeout on connect()?
How does unix socket work?
Explain the TIME_WAIT state.
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
Why sockets are used?
What is difference between socket () and serversocket () class?