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.InetSocketAddressAct as specialInetSocketAddressto 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 DatagramSocketAddresslocalAddressprivate intreceivedAmountprivate static longserialVersionUID
-
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 DatagramSocketAddresslocalAddress()private static java.net.InetAddressnewAddress(byte[] bytes, int scopeId)intreceivedAmount()
-
-
-
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
-
-