Skip to content

Commit

Permalink
g3-io-ext: fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed May 15, 2024
1 parent 7de5cf6 commit d99e2c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/g3-io-ext/src/udp/ext/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ impl UdpSocketExt for UdpSocket {
}

fn try_sendmsg(&self, iov: &[IoSlice<'_>], target: Option<SocketAddr>) -> io::Result<usize> {
let socket = RawSocket::from(self);

self.try_io(Interest::WRITABLE, || socket.sendmsg(iov, target))
}
}

0 comments on commit d99e2c6

Please sign in to comment.