Class DatagramSocketAddress

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DatagramSocketAddress
    extends java.net.InetSocketAddress
    Act as special InetSocketAddress to be able to easily pass all needed data from JNI without the need to create more objects then needed.

    Internal usage only!

    See Also:
    Serialized Form
    • Constructor Detail

      • DatagramSocketAddress

        DatagramSocketAddress​(byte[] addr,
                              int scopeId,
                              int port,
                              int receivedAmount,
                              DatagramSocketAddress local)
                       throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
    • Method Detail

      • receivedAmount

        public int receivedAmount()
      • newAddress

        private static java.net.InetAddress newAddress​(byte[] bytes,
                                                       int scopeId)
                                                throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException