Extends
- AbstractARQReceiver
Members
(readonly) expectedSeqNum :number
The next sequence number that the node expects to receive.
- Source:
Methods
(protected) _checkReceivedPkt(packet) → {boolean}
Tests whether a packet is correct or not. A packet is correct if it's not corrupted and the sequence number is the expected one.
Parameters:
Name | Type | Description |
---|---|---|
packet |
Packet |
The received packet. |
- Source:
(protected) _processExpectedPkt(packet)
Processes a correctly received packet, sending the corresponding acknowledgment to the sender.
Parameters:
Name | Type | Description |
---|---|---|
packet |
Packet |
The packet to process. |
- Source:
_processUnexpectedPkt(packet)
Processes an incorrectly received packet, sending an acknowledgment for the last correctly received packet.
Parameters:
Name | Type | Description |
---|---|---|
packet |
Packet |
The packet to process. |
- Source: