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
How can I tell when a socket is closed on the other end?
What is difference between socket () and serversocket () class?
Where is the socket located?
What is a socket set used for?
Why sockets are used?
What's the difference between a socket and a port?
What is the difference between read() and recv()?
How does unix socket work?
What is a socket file?
Why do I get EPROTO from read()?
How is a socket created?
Why do we need sockets?
What pieces of information make up a socket?
Can multiple sockets use the same port?
How do I use TCP_NODELAY?