Package io.netty.channel.unix
Class NativeInetAddress
java.lang.Object
io.netty.channel.unix.NativeInetAddress
Internal usage only!
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final byte[]
private static final byte[]
(package private) final int
-
Constructor Summary
ConstructorsConstructorDescriptionNativeInetAddress
(byte[] address) NativeInetAddress
(byte[] address, int scopeId) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
address()
static InetSocketAddress
address
(byte[] addr, int offset, int len) static void
copyIpv4MappedIpv6Address
(byte[] ipv4, byte[] ipv6) (package private) static int
decodeInt
(byte[] addr, int index) static byte[]
ipv4MappedIpv6Address
(byte[] ipv4) static NativeInetAddress
newInstance
(InetAddress addr) int
scopeId()
-
Field Details
-
IPV4_MAPPED_IPV6_PREFIX
private static final byte[] IPV4_MAPPED_IPV6_PREFIX -
address
final byte[] address -
scopeId
final int scopeId
-
-
Constructor Details
-
NativeInetAddress
public NativeInetAddress(byte[] address, int scopeId) -
NativeInetAddress
public NativeInetAddress(byte[] address)
-
-
Method Details
-
newInstance
-
address
public byte[] address() -
scopeId
public int scopeId() -
ipv4MappedIpv6Address
public static byte[] ipv4MappedIpv6Address(byte[] ipv4) -
copyIpv4MappedIpv6Address
public static void copyIpv4MappedIpv6Address(byte[] ipv4, byte[] ipv6) -
address
-
decodeInt
static int decodeInt(byte[] addr, int index)
-