How can I be sure that a UDP message is received?
Answer Posted / sudheer
You have to design your protocol to expect a confirmation
back from
the destination when a message is received. Of course is the
confirmation is sent by UDP, then it too is unreliable and
may not
make it back to the sender. If the sender does not get
confirmation
back by a certain time, it will have to re-transmit the
message, maybe
more than once. Now the receiver has a problem because it
may have
already received the message, so some way of dropping
duplicates is
required. Most protocols use a message numbering scheme
so that the
receiver can tell that it has already processed this
message and
return another confirmation. Confirmations will also have to
reference the message number so that the sender can tell
which message
is being confirmed. Confused? That's why I stick with TCP.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Which is better tcp or udp?
Does fortnite use tcp or udp?
Can tcp and udp share the same port?
Is udp better than tcp?
What's the difference between udp and tcp?
Is port 8000 a tcp or udp?
Why is tcp more reliable than udp?
Can you send and receive on same udp port?
Is tcp better than udp?
Normally they r setting question 4rm time@distance,time@work,ages,cisterns@pipes,etc
Is tcp or udp better for gaming?
Why tcp is more reliable than udp?
Is tcp or udp better for streaming?
Is tcp or udp faster?
Does netflix use udp or tcp?