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
FieldsModifier and TypeFieldDescriptionprivate final DatagramSocketAddressprivate final intprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionDatagramSocketAddress(byte[] addr, int scopeId, int port, int receivedAmount, DatagramSocketAddress local) -
Method Summary
Modifier and TypeMethodDescriptionprivate static java.net.InetAddressnewAddress(byte[] bytes, int scopeId) intMethods inherited from class java.net.InetSocketAddress
createUnresolved, equals, getAddress, getHostName, getHostString, getPort, hashCode, isUnresolved, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
receivedAmount
private final int receivedAmount -
localAddress
-
-
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
-
receivedAmount
public int receivedAmount() -
newAddress
private static java.net.InetAddress newAddress(byte[] bytes, int scopeId) throws java.net.UnknownHostException - Throws:
java.net.UnknownHostException
-