Skip to main content

lookup_host

Function lookup_host 

Source
pub async fn lookup_host(name: &str, port: u16) -> Result<Vec<SocketAddr>>
Expand description

Every address name answers to at port: loopback for a localhost name, and the system’s answer for any other.