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 do I convert a string into an internet address?
Why does it take so long to detect that the peer died?
Why do we need socket programming?
How do I properly close a socket?
What is a deep well socket?
What is socket address with example?
of the socket? Does doing a connect() call affect the receive behaviour?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
What is LILO?
How can I listen on more than one port at a time?
What is the difference between a socket and a port?
Can multiple sockets use the same port?