pub fn resend_tcp_ack(&mut self, dst: SocketAddrV4, src_port: u16) -> io::Result<()> {
        let key = (src_port, dst);

        // Resend
        let payload;
        let sequence;
        match self.tcp_cache_map.get(&key) {
            Some(cache) => {
                match cache.get_all() {
                    Ok(buffer) => {
                        payload = buffer;
                    }
                    Err(e) => return Err(e),
                }
                sequence = cache.get_sequence();
            }
            None => return Ok(()),
        };

        if payload.len() > 0 {
            return self.send_tcp_ack_raw(dst, src_port, sequence, payload.as_slice());
        }

        Ok(())
    }
/// Resends TCP ACK packets from first (sent) cache.
Resends TCP ACK packets from first (sent) cache.
Resends TCP ACK packets from first ( sent ) cache .
pub fn resend_tcp_ack(&mut self, dst: SocketAddrV4, src_port: u16) -> io::Result<()> {
        let key = (src_port, dst);
        // Resend
        let payload;
        let sequence;
        match self.tcp_cache_map.get(&key) {
            Some(cache) => {
                match cache.get_all() {
                    Ok(buffer) => {
                        payload = buffer;
                    }
                    Err(e) => return Err(e),
                }
                sequence = cache.get_sequence();
            }
            None => return Ok(()),
        };
        if payload.len() > 0 {
            return self.send_tcp_ack_raw(dst, src_port, sequence, payload.as_slice());
        }
        Ok(())
    }
pub fn resend_tcp_ack ( & mut self , dst : SocketAddrV4 , src_port : u16 ) -> io :: Result < ( ) > { let key = ( src_port , dst ) ; // Resend let payload ; let sequence ; match self . tcp_cache_map . get ( & key ) { Some ( cache ) => { match cache . get_all ( ) { Ok ( buffer ) => { payload = buffer ; } Err ( e ) => return Err ( e ) , } sequence = cache . get_sequence ( ) ; } None => return Ok ( ( ) ) , } ; if payload . len ( ) > 0 { return self . send_tcp_ack_raw ( dst , src_port , sequence , payload . as_slice ( ) ) ; } Ok ( ( ) ) }
Resends TCP ACK packets from first (sent) cache.
Resends TCP ACK packets from first ( sent ) cache .
&mut self
dst
SocketAddrV4
src_port
u16