-
Notifications
You must be signed in to change notification settings - Fork 0
rqueue
Lucio Santi edited this page Aug 3, 2014
·
2 revisions
PTC Wiki ▸ Code overview ▸ rqueue
This module implements the RetransmissionQueue. Once a packet gets queued, it will have a timestamp that will be checked on every clock tick (through the tickmethod, which in fact is called by the method with that same name on PTCProtocol). If a timer expires, the respective packet is moved to an internal list of packets to retransmit, which is later consumed by the protocol. On the other hand, when processing an ACK, the method remove_acknowledged_by will remove from the queue every packet whose payload is completely covered by the acknowledge number contained in the packet provided as argument.