/// When we compose packet headers, the local sequence becomes the sequence number of the packet, and the remote sequence becomes the ack.
/// The ack bitfield is calculated by looking into a queue of up to 33 packets, containing sequence numbers in the range [remote sequence - 32, remote sequence].
/// We set bit n (in [1,32]) in ack bits to 1 if the sequence number remote sequence - n is in the received queue.
When we compose packet headers, the local sequence becomes the sequence number of the packet, and the remote sequence becomes the ack.
The ack bitfield is calculated by looking into a queue of up to 33 packets, containing sequence numbers in the range [remote sequence - 32, remote sequence].
We set bit n (in [1,32]) in ack bits to 1 if the sequence number remote sequence - n is in the received queue.
When we compose packet headers the local sequence becomes the sequence number of the packet and the remote sequence becomes the ack . The ack bitfield is calculated by looking into a queue of up to 33 packets containing sequence numbers in the range [ remote sequence - 32 remote sequence ] . We set bit n ( in [ 1 32 ] ) in ack bits to 1 if the sequence number remote sequence - n is in the received queue .
pub fn new(seq_num: u16, last_seq: u16, bit_field: u32) -> AckedPacketHeader {
        AckedPacketHeader {
            seq: seq_num,
            ack_seq: last_seq,
            ack_field: bit_field,
        }
    }
pub fn new ( seq_num : u16 , last_seq : u16 , bit_field : u32 ) -> AckedPacketHeader { AckedPacketHeader { seq : seq_num , ack_seq : last_seq , ack_field : bit_field , } }
When we compose packet headers, the local sequence becomes the sequence number of the packet, and the remote sequence becomes the ack.
When we compose packet headers the local sequence becomes the sequence number of the packet and the remote sequence becomes the ack .
seq_num
u16
last_seq
u16
bit_field
u32