<div dir="ltr"><div class="gmail_extra">Perhaps structure for keeping fetched packets can look like:</div><div class="gmail_extra"><br></div><div class="gmail_extra">WindowBeginning</div><div class="gmail_extra"><br></div><div class="gmail_extra">then list of binaries of N bytes each, which are bitmaps. Some of binaries can be replaced by atom 'true' if all bits are set</div><div class="gmail_extra"><br></div><div class="gmail_extra">and WindowEnd</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">My question here is: when to send retransmit request?  I suppose that this question is very close to TCP problems, so it cannot have a simple answer, but maybe you have some good enough answer for you?</div></div>