oscall 0.1.1

Low-level cross-platform interface to operating system services: files, memory mapping, networking and more, with no libc on Linux
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Name resolution on WebAssembly: there is no resolver to ask, and no
//! socket to ask a server with.

use core::net::{IpAddr, SocketAddr};

use crate::net::IpVersion;
use crate::{ErrorKind, Result};

pub(crate) fn resolve(_: &str, _: u16, _: IpVersion, _: &mut [SocketAddr]) -> Result<usize> {
    Err(ErrorKind::Unsupported.into())
}

pub(crate) fn reverse(_: IpAddr, _: &mut [u8]) -> Result<usize> {
    Err(ErrorKind::Unsupported.into())
}