Package io.netty.channel.epoll
Class NativeDatagramPacketArray.NativeDatagramPacket
- java.lang.Object
-
- io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket
-
- Enclosing class:
- NativeDatagramPacketArray
@UnstableApi public final class NativeDatagramPacketArray.NativeDatagramPacket extends java.lang.Object
Used to pass needed data to JNI.
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private long
memoryAddress
private byte[]
recipientAddr
private int
recipientAddrLen
private int
recipientPort
private int
recipientScopeId
private int
segmentSize
private byte[]
senderAddr
private int
senderAddrLen
private int
senderPort
private int
senderScopeId
-
Constructor Summary
Constructors Constructor Description NativeDatagramPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
hasSender()
private void
init(long memoryAddress, int count, int segmentSize, java.net.InetSocketAddress recipient)
(package private) DatagramPacket
newDatagramPacket(ByteBuf buffer, java.net.InetSocketAddress recipient)
-
-
-
Field Detail
-
memoryAddress
private long memoryAddress
-
count
private int count
-
senderAddr
private final byte[] senderAddr
-
senderAddrLen
private int senderAddrLen
-
senderScopeId
private int senderScopeId
-
senderPort
private int senderPort
-
recipientAddr
private final byte[] recipientAddr
-
recipientAddrLen
private int recipientAddrLen
-
recipientScopeId
private int recipientScopeId
-
recipientPort
private int recipientPort
-
segmentSize
private int segmentSize
-
-
Method Detail
-
init
private void init(long memoryAddress, int count, int segmentSize, java.net.InetSocketAddress recipient)
-
hasSender
boolean hasSender()
-
newDatagramPacket
DatagramPacket newDatagramPacket(ByteBuf buffer, java.net.InetSocketAddress recipient) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
-