@Test public void testHostAndPortIpv6() throws Exception { String hostAndPort = "[fe80::21c:c0ff:fea0:caf4]:1111"; InetSocketAddress address = InetSocketAddresses.inetAddressOf(hostAndPort); assertEquals(InetAddress.getByName("fe80::21c:c0ff:fea0:caf4"), address.getAddress()); assertEquals(1111, address.getPort()); }
public static InetSocketAddress inetAddressOf(String address) { HostAndPort hostAndPort = HostAndPort.fromString(address); return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPort()); }
InetSocketAddresses { public static InetSocketAddress inetAddressOf(String address) { HostAndPort hostAndPort = HostAndPort.fromString(address); return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPort()); } }
InetSocketAddresses { public static InetSocketAddress inetAddressOf(String address) { HostAndPort hostAndPort = HostAndPort.fromString(address); return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPort()); } private  InetSocketAddresses(); }
InetSocketAddresses { public static InetSocketAddress inetAddressOf(String address) { HostAndPort hostAndPort = HostAndPort.fromString(address); return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPort()); } private  InetSocketAddresses(); static InetSocketAddress forUaddrString(String uaddr); static InetSocketAddress inetAddressOf(String address); static String uaddrOf(InetSocketAddress socketAddress); static String uaddrOf(String host, int port); static String tcpNetidOf(InetAddress address); }
InetSocketAddresses { public static InetSocketAddress inetAddressOf(String address) { HostAndPort hostAndPort = HostAndPort.fromString(address); return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPort()); } private  InetSocketAddresses(); static InetSocketAddress forUaddrString(String uaddr); static InetSocketAddress inetAddressOf(String address); static String uaddrOf(InetSocketAddress socketAddress); static String uaddrOf(String host, int port); static String tcpNetidOf(InetAddress address);  }