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 |
What's better 6pt or 12pt sockets?
How can I set the timeout for the connect() system call?
After the chroot(), calls to socket() are failing. Why?
Why does the sockets buffer fill up sooner than expected?
What is a socket connection?
What is Mac, and how is it different from PC? Which one is better for professional users, and why
1 Answers Evolving Systems, IBM,
How often should I re-transmit un-acknowleged messages?
How can I listen on more than one port at a time?
How does a socket work?
Are unix sockets faster than tcp?
How can my client work through a firewall/proxy server?
When will my application receive SIGPIPE?