diff --git a/msim-tokio/src/sim/udp.rs b/msim-tokio/src/sim/udp.rs index 969e65b..e9c9022 100644 --- a/msim-tokio/src/sim/udp.rs +++ b/msim-tokio/src/sim/udp.rs @@ -83,8 +83,12 @@ impl UdpSocket { Ok(()) } - pub async fn ready(&self, _interest: Interest) -> io::Result { - todo!() + pub async fn ready(&self, interest: Interest) -> io::Result { + match interest { + Interest::READABLE => Ok(Ready::READABLE), + Interest::WRITABLE => Ok(Ready::WRITABLE), + _ => unimplemented!("unhandled interest flag {:?}", interest), + } } pub async fn writable(&self) -> io::Result<()> {