pub fn queue_tcp(
        &mut self,
        dst: SocketAddrV4,
        src: SocketAddrV4,
        payload: &[u8],
    ) -> io::Result<()> {
        // Append to queue
        let state = self
            .get_state_mut(dst, src)
            .ok_or(io::Error::from(io::ErrorKind::NotFound))?;
        state.append_queue(payload);

        self.send_tcp(dst, src)
    }
/// Appends TCP payload to the queue.
Appends TCP payload to the queue.
Appends TCP payload to the queue .
pub fn queue_tcp(
        &mut self,
        dst: SocketAddrV4,
        src: SocketAddrV4,
        payload: &[u8],
    ) -> io::Result<()> {
        // Append to queue
        let state = self
            .get_state_mut(dst, src)
            .ok_or(io::Error::from(io::ErrorKind::NotFound))?;
        state.append_queue(payload);
        self.send_tcp(dst, src)
    }
pub fn queue_tcp ( & mut self , dst : SocketAddrV4 , src : SocketAddrV4 , payload : & [ u8 ] , ) -> io :: Result < ( ) > { // Append to queue let state = self . get_state_mut ( dst , src ) . ok_or ( io :: Error :: from ( io :: ErrorKind :: NotFound ) ) ? ; state . append_queue ( payload ) ; self . send_tcp ( dst , src ) }
Appends TCP payload to the queue.
Appends TCP payload to the queue .
&mut self
dst
SocketAddrV4
src
SocketAddrV4
payload
&[u8]
&mut self
dst
SocketAddrV4
src
SocketAddrV4
payload
&[u8]