Skip to content

Commit

Permalink
crates/sel4-async/network: Add TCP socket abort method
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Aug 31, 2023
1 parent b39da09 commit 03a325d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/sel4-async/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ impl Socket<tcp::Socket<'static>> {

Ok(())
}

pub fn abort(&mut self) {
self.with_mut(|socket| socket.abort())
}
}

impl<T> Drop for Socket<T> {
Expand Down

0 comments on commit 03a325d

Please sign in to comment.