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 force a socket to send the data in its buffer?
Where is the socket located?
Can multiple clients connect to same socket?
How does unix socket work?
How many sockets can a port have?
What is a socket set used for?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
What is difference between socket and websocket?
How do I use TCP_NODELAY?
Whats the difference between select() and poll()?
Can multiple sockets use the same port?
Can a socket have multiple ports?
Can a single socket port be used for multiple applications?
How can I tell when a socket is closed on the other end?
Why does the sockets buffer fill up sooner than expected?