pub fn current_ack(&self) -> Option<SeqNumber> {
        let ack_seq_no = self.ack_seq_no.get();
        let recv_seq_no = self.recv_seq_no.get();

        // It is okay if ack_seq_no is greater than the seq number. This can happen when we have
        // ACKed a FIN so our ACK number is +1 greater than our seq number.
        if ack_seq_no == recv_seq_no {
            None
        } else {
            Some(recv_seq_no)
        }
    }
/// Returns the ack sequence number to use for the next packet based on all the bytes we have
/// received. This ack sequence number will be piggy backed on the next packet send.
/// If all received bytes have been acknowledged returns None.
Returns the ack sequence number to use for the next packet based on all the bytes we have
received. This ack sequence number will be piggy backed on the next packet send.
If all received bytes have been acknowledged returns None.
Returns the ack sequence number to use for the next packet based on all the bytes we have received . This ack sequence number will be piggy backed on the next packet send . If all received bytes have been acknowledged returns None .
pub fn current_ack(&self) -> Option<SeqNumber> {
        let ack_seq_no = self.ack_seq_no.get();
        let recv_seq_no = self.recv_seq_no.get();
        // It is okay if ack_seq_no is greater than the seq number. This can happen when we have
        // ACKed a FIN so our ACK number is +1 greater than our seq number.
        if ack_seq_no == recv_seq_no {
            None
        } else {
            Some(recv_seq_no)
        }
    }
pub fn current_ack ( & self ) -> Option < SeqNumber > { let ack_seq_no = self . ack_seq_no . get ( ) ; let recv_seq_no = self . recv_seq_no . get ( ) ; // It is okay if ack_seq_no is greater than the seq number. This can happen when we have // ACKed a FIN so our ACK number is +1 greater than our seq number. if ack_seq_no == recv_seq_no { None } else { Some ( recv_seq_no ) } }
Returns the ack sequence number to use for the next packet based on all the bytes we have
received.
Returns the ack sequence number to use for the next packet based on all the bytes we have received .
&self
&self