Click here to Skip to main content
15,895,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

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.
 
Share this answer
 
Comments
Espen Harlinn 30-Sep-11 13:22pm    
Good reply :)
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.
 
Share this answer
 
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
 
Share this answer
 

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