get_addrinfo.rs 169 B

12345678
  1. use wasmedge_wasi_socket::nslookup;
  2. fn main() {
  3. let addrs = nslookup("google.com", "http").unwrap();
  4. for addr in addrs {
  5. println!("{:?}",addr);
  6. }
  7. }