reduce the chance of duplicate packet transactions by randomizing the frame counter. add a check to not retransmit DATA packets we've already received.
reduce the chance of duplicate packet transactions by randomizing the frame counter. add a check to not retransmit DATA packets we've already received.

saucecode/gtUDP