- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsIPv6 (0.04 sec)
-
cmd/server-startup-msg.go
// Prints documentation message. printObjectAPIMsg() if globalIsDistErasure { logger.Startup(color.Bold(banner)) } } // Returns true if input is IPv6 func isIPv6(host string) bool { h, _, err := net.SplitHostPort(host) if err != nil { h = host } ip := net.ParseIP(h) return ip.To16() != nil && ip.To4() == nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Aug 23 14:11:35 UTC 2024 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
InetAddress address = InetAddresses.forString(ip); boolean isIpv6 = address instanceof Inet6Address; assertEquals(bigIntegerIp, InetAddresses.toBigInteger(address)); assertEquals( address, isIpv6 ? InetAddresses.fromIPv6BigInteger(bigIntegerIp) : InetAddresses.fromIPv4BigInteger(bigIntegerIp)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
* @param isIpv6 whether the created address should be IPv4 or IPv6 * @return the BigInteger converted to an address * @throws IllegalArgumentException if the BigInteger is not between 0 and maximum value for IPv4 * or IPv6 respectively */ private static InetAddress fromBigInteger(BigInteger address, boolean isIpv6) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
* @param isIpv6 whether the created address should be IPv4 or IPv6 * @return the BigInteger converted to an address * @throws IllegalArgumentException if the BigInteger is not between 0 and maximum value for IPv4 * or IPv6 respectively */ private static InetAddress fromBigInteger(BigInteger address, boolean isIpv6) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0)