Re:Potholes to avoid when migrating to IPv6
by throwaway12iii on Monday December 31, 2018 @05:55AM
(#18794019)
Actually, in Java you can just use InetAddress.getByName.
Re:Potholes to avoid when migrating to IPv6
by throwaway12iii on Monday December 31, 2018 @05:57AM
(#18794022)
man 3 getaddrinfo
Re:Potholes to avoid when migrating to IPv6
by throwaway12iii on Monday December 31, 2018 @05:36AM
(#18793960)
Why don't you rewrite that in rust?
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
let localhost_v6 = IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
assert_eq!("::1".parse(), Ok(localhost_v6));
Well actually, python can do that just as well as all the other languages.