I am implementing a sliding window for a trivial protocol. I was implementing the window using a static circular queue (array), as i though it is efficient.
But one of my friends said, he has seen the implementation of sliding window in tcp, it uses a linked list. I dont think he has seen, as he doesnot know where is network code located in the distro.
Anyways,
which is a better way to implement the Sliding Window for flow control.
1. a cicular queues
2. a linked list
3. or something else.
any recommendations or code implementation?