Skip to main content

parse_inet_aton

Function parse_inet_aton 

Source
pub fn parse_inet_aton(s: &str) -> Option<Ipv4Addr>
Expand description

Read a host the way inet_aton (and so getaddrinfo) does: one to four parts, each decimal, octal (leading 0) or hex (0x). 2130706433, 0x7f000001, 0177.1 and 127.1 are all 127.0.0.1.