| 1 |
#![cfg(not(target_os = "wasi"))] |
| 2 |
use std::io; |
| 3 |
use std::net::{self, SocketAddr}; |
| 4 |
|
| 5 |
pub fn bind(_: SocketAddr) -> io::Result<net::UdpSocket> { |
| 6 |
os_required!() |
| 7 |
} |
| 8 |
|
| 9 |
pub(crate) fn only_v6(_: &net::UdpSocket) -> io::Result<bool> { |
| 10 |
os_required!() |
| 11 |
} |