Click here to Skip to main content
14,266,191 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am already tried with ping pong buffer concept for what reason is .

i have a one UDP receiver i should receive upto 10 gb files but during the sequential

execution it might lose the packet(8K).....one packet is 8K ....for 10gb is missing

250 packets and for 1 gb it missing 50 packets.


so i tried with the ping pong concept and circular buffer i wont work .....any one

have idea share with me....its urgent
Posted
Updated 30-Sep-11 10:02am
v4
Comments
Mehdi Gholam 30-Sep-11 11:40am
   
Please explain what you are trying to do as it is not clear.
Rate this:
Please Sign up or sign in to vote.

Solution 1

1. If you are using UDP then you need to include some extra detail in your datagrams to check for lost packets, and have them resent by the server.
2. What do you mean by "ping pong concept"?
3. It is not urgent to anyone but you.
   
Comments
Espen Harlinn 30-Sep-11 13:22pm
   
Good reply :)
Rate this:
Please Sign up or sign in to vote.

Solution 2

If you need packet reliability, you shouldn't be using UDP, you should be using TCP. UDP is not meant to have high reliability, if you're going to add your own overhead to make it reliable, you're essentially turning UDP into TCP.
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

1- use TCP instead of UDP if you can
2- if you can not using TCP so you should implement an acknowledgement and resending system in your packet transfer system.

*- TCP is more reliable and also faster than UDP with acknowledgment
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100