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 |
How come I get address already in use from bind()?
If bind() fails, what should I do with the socket descriptor?
How many sockets can a port have?
Can multiple sockets use the same port?
What is LILO?
Are unix sockets faster than tcp?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
What's better 6pt or 12pt sockets?
How can I read only one character at a time?
What exactly does SO_KEEPALIVE do?
Why does connect() succeed even before my server did an accept()?
What are the types of sockets?