Package org.jruby.ext.socket
Class SocketUtilsIPV6.IPv6Network
java.lang.Object
org.jruby.ext.socket.SocketUtilsIPV6.IPv6Network
- Enclosing class:
- SocketUtilsIPV6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SocketUtilsIPV6.IPv6Addressprivate SocketUtilsIPV6.IPv6Addressprivate SocketUtilsIPV6.IPv6Addressprivate SocketUtilsIPV6.IPv6NetworkMask -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateIPv6Network(SocketUtilsIPV6.IPv6Address address, SocketUtilsIPV6.IPv6NetworkMask networkMask) Construct from address and network mask. -
Method Summary
Modifier and TypeMethodDescriptionfromString(String string) Create an IPv6 network from its String representation.private StringparseNetworkAddress(String string) private intparsePrefixLength(String string)
-
Field Details
-
networkMask
-
first
-
last
-
address
-
-
Constructor Details
-
IPv6Network
private IPv6Network(SocketUtilsIPV6.IPv6Address address, SocketUtilsIPV6.IPv6NetworkMask networkMask) Construct from address and network mask.- Parameters:
address- addressnetworkMask- network mask
-
IPv6Network
private IPv6Network()
-
-
Method Details
-
fromString
Create an IPv6 network from its String representation. For example "1234:5678:abcd:0:0:0:0:0/64" or "2001::ff/128".- Parameters:
string- string representation- Returns:
- IPv6 network
-
parseNetworkAddress
-
parsePrefixLength
-
getNetmask
-