I need to send some data over UDP (cant use TCP), and i want to make sure that the data gets there. I thought that sending som data to the other host, and then that host sends a reply back saying HEY I GOT IT, but then theres a chance that HEY I GOT IT is dropped too..
is there any way i can make sure that the receiver gets it??
Name:
Anonymous2008-07-20 2:28
My suggestion:
Party A sends party B a message with a random, unique ID with UDP. If party B receives the message, then party B sends an "I got it" message to party A with the same unique ID.
If party A's message fails, then party B will never send a response; after a timeout period, party A will send the message again until it receives a response.
If party B receives the same message from party A multiple times (because party B's responses to party A have repeatedly failed,) then party B will simply keep sending the same response.