Class DatagramSocketAddress

java.lang.Object
java.net.SocketAddress
java.net.InetSocketAddress
io.netty.channel.unix.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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final DatagramSocketAddress
     
    private final int
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DatagramSocketAddress(byte[] addr, int scopeId, int port, int receivedAmount, DatagramSocketAddress local)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    private static java.net.InetAddress
    newAddress(byte[] bytes, int scopeId)
     
    int
     

    Methods inherited from class java.net.InetSocketAddress

    createUnresolved, equals, getAddress, getHostName, getHostString, getPort, hashCode, isUnresolved, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • DatagramSocketAddress

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

    • localAddress

      public DatagramSocketAddress localAddress()
    • receivedAmount

      public int receivedAmount()
    • newAddress

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