Top Fields Constructors Methods
io.netty.handler.pcap

pack-priv final Class UDPPacket

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf

Field Summary

Modifier and TypeField and Description
private static final short

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
writePacket(ByteBuf
ByteBuf where Packet data will be set
byteBuf
,
ByteBuf
Payload of this Packet
payload
,
int
Source Port
srcPort
,
int
Destination Port
dstPort
)

Write UDP Packet

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UDP_HEADER_SIZEback to summary
private static final short UDP_HEADER_SIZE

Constructor Detail

UDPPacketback to summary
private UDPPacket()

Method Detail

writePacketback to summary
pack-priv static void writePacket(ByteBuf byteBuf, ByteBuf payload, int srcPort, int dstPort)

Write UDP Packet

Parameters
byteBuf:ByteBuf

ByteBuf where Packet data will be set

payload:ByteBuf

Payload of this Packet

srcPort:int

Source Port

dstPort:int

Destination Port