Package io.netty.channel.unix
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 specialInetSocketAddress
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
-
-
Field Summary
Fields Modifier and Type Field Description private DatagramSocketAddress
localAddress
private int
receivedAmount
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DatagramSocketAddress(byte[] addr, int scopeId, int port, int receivedAmount, DatagramSocketAddress local)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DatagramSocketAddress
localAddress()
private static java.net.InetAddress
newAddress(byte[] bytes, int scopeId)
int
receivedAmount()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
receivedAmount
private final int receivedAmount
-
localAddress
private final DatagramSocketAddress localAddress
-
-
Constructor Detail
-
DatagramSocketAddress
DatagramSocketAddress(byte[] addr, int scopeId, int port, int receivedAmount, DatagramSocketAddress local) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
-
Method Detail
-
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
-
-