use std::io; use std::net::{self, SocketAddr}; pub(crate) fn new_for_addr(_: SocketAddr) -> io::Result { os_required!(); } pub(crate) fn bind(_: &net::TcpListener, _: SocketAddr) -> io::Result<()> { os_required!(); } pub(crate) fn connect(_: &net::TcpStream, _: SocketAddr) -> io::Result<()> { os_required!(); } pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> { os_required!(); } #[cfg(unix)] pub(crate) fn set_reuseaddr(_: &net::TcpListener, _: bool) -> io::Result<()> { os_required!(); } pub(crate) fn accept(_: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> { os_required!(); }