Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What's the difference between a socket and a port?

794


How do I use TCP_NODELAY?

1497


How to find other end of unix socket connection?

840


How are unix domain sockets implemented?

792


Is tcp or unix socket faster?

789


Why do we need socket programming?

812


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?

1361


Why do we need sockets?

759


What are the pros/cons of select(), non-blocking I/O and SIGIO?

1309


How can I set the timeout for the connect() system call?

1462


system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

1555


How many sockets can a port have?

802


Why does the sockets buffer fill up sooner than expected?

1282


Why do I get EPROTO from read()?

1392


What is the purpose of socket?

848