Asynchronous name resolution utilities for the futures
and tokio-core
crates. Look at the crate-level documentation for more details.
This library has been packaged to crates.io. Note that its name on crates.io is tokio-dns-unofficial
, but the crate's name is tokio-dns
(when using extern crate ...
).
```rust // Taken from examples/basic.rs
// connect using the built-in resolver. let conn = tcpconnect("rust-lang.org:80", &lp.handle()).andthen(|sock| { println!("conncted to {}", sock.peer_addr().unwrap()); Ok(()) }); ```