Re: [Plib-devel] Networking Code
Brought to you by:
sjbaker
From: Michael K. <neg...@ea...> - 2000-08-24 04:53:42
|
> So, you NEED a TCP-like protocol where every packet it GUARANTEED to arrive for sending > "one-shot" messages - AND a UDP-like protocol where time-critical - but often-repeated > messages may or may not make it. > If a UDP packet is critical then set a flag in your packet header requesting an ACK be sent back. This will of course mean you need to design a method of knowing which packets you sent required an ACK, clearing ACK'd packets, knowing which ones haven't been ACK'd yet, and resending the packet. Obviously this should not be used to replace TCP, but in the case where you want to send *most* of your packets to the winds and just require a few of them to be acknowledged this should work well. |