Class NativeInetAddress

java.lang.Object
io.netty.channel.unix.NativeInetAddress

public final class NativeInetAddress extends java.lang.Object
Internal usage only!
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final byte[]
     
    private static final byte[]
     
    (package private) final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NativeInetAddress(byte[] address)
     
    NativeInetAddress(byte[] address, int scopeId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    static java.net.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)
     
    newInstance(java.net.InetAddress addr)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static NativeInetAddress newInstance(java.net.InetAddress addr)
    • 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

      public static java.net.InetSocketAddress address(byte[] addr, int offset, int len)
    • decodeInt

      static int decodeInt(byte[] addr, int index)