How can I be sure that UDP messages are received in order?
Answer Posted / 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 |
Post New Answer View All Answers
Why sockets are used?
Why do we need sockets?
What's better 6pt or 12pt sockets?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
How to find other end of unix socket connection?
What pieces of information make up a socket?
What's the difference between impact sockets and regular sockets?
How can I set the timeout for the connect() system call?
Is a socket a file?
What is sae socket?
Are sockets files?
What are the types of sockets?
What does af mean in sockets?
What is the function of socket?
Can multiple sockets use the same port?