Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to achieve reliable UDP Data Transfer with a maximum throughput ..?? 


What I have tried:

yes but no result there was a data loss
Posted
Updated 8-Feb-18 18:58pm

You don't. UDP has no guarantees of delivery nor in the order that packets show up at the receiver and the possibility of duplicate packets also exists! There is NO WAY around this.

If you want "reliable" data transfer, UDP is the LEAST reliable transport there is. You're going to have to use TCP instead.
 
Share this answer
 
Thanks Dave for reply,

is it possible to reduce the throughput and increase the reliability of data
 
Share this answer
 
Comments
Richard MacCutchan 9-Feb-18 5:27am    
Only by writing your own handler to check the order of messages and whether any have been missed. UDP is designed to be unreliable; if you want guaranteed delivery then you need to switch to TCP
Richard Deeming 9-Feb-18 10:06am    
If you want to reply to a solution, click the "Have a Question or Comment?" button under that solution.

DO NOT post your reply as a new "solution"!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900