Module std::io::net::addrinfoExperimental
[-]
[+]
[src]
Synchronous DNS Resolution
Contains the functionality to perform DNS resolution or reverse lookup,
in a style related to getaddrinfo()
and getnameinfo()
, respectively.
Reexports
pub use self::SocketType::*; |
pub use self::Flag::*; |
pub use self::Protocol::*; |
Structs
Hint | This structure is used to provide hints when fetching addresses for a remote host to control how the lookup is performed. |
Info |
Enums
Flag | Flags which can be or'd into the |
Protocol | A transport protocol associated with either a hint or a return value of
|
SocketType | Hints to the types of sockets that are desired when looking up hosts |
Functions
get_address_name | Reverse name resolution. Given an address, returns the corresponding hostname. |
get_host_addresses | Easy name resolution. Given a hostname, returns the list of IP addresses for that hostname. |