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
What's the difference between a socket and a port?
How do I use TCP_NODELAY?
How to find other end of unix socket connection?
How are unix domain sockets implemented?
Is tcp or unix socket faster?
Why do we need socket programming?
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
Why do we need sockets?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
How can I set the timeout for the connect() system call?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
How many sockets can a port have?
Why does the sockets buffer fill up sooner than expected?
Why do I get EPROTO from read()?
What is the purpose of socket?