Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.86/5 (5 votes)
See more:
I want to Retry a packet transmission on UDP if neither ACK nor NACK is received. Then in that scenario i will wait for 500 milliseconds till i retransmit the packet.
Posted
Updated 14-Apr-15 1:01am
v3
Comments
Frankie-C 13-Apr-15 6:55am    
And the question is?
Richard MacCutchan 13-Apr-15 6:57am    
What packet, what protocol, what connection type ... ? Basically, what are you talking about here, we cannot guess.
CPallini 13-Apr-15 7:42am    
Hence go on, go on..
What is your doubt?
Prerna_Sharma 14-Apr-15 7:57am    
Can you please help me now ??
Albert Holguin 13-Apr-15 13:02pm    
If you're using TCP/IP, this happens automatically without you doing anything. You have to provide more info on what you're trying to do and what protocols you're using.

Why are you trying to implement this on UDP? TCP does this for free.

UDP is connectionless and do not guarantee packet delivery at all, let alone the packets getting there in the correct order.

If your requirements are anything other than the above, use TCP instead.

Oh, and UDP doesn't implement any kind of acknowledgment. The sender never gets anything from the receiver saying that it did or did not receive a packet or message.
 
Share this answer
 
v2
UDP is a connectionless protocol.

There is no handshaking going on.

There are no acks and nacks between the client and server

Try using zeromq.

http://zeromq.org
 
Share this answer
 
v2

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