Class UDPPacket

java.lang.Object
io.netty.handler.pcap.UDPPacket

final class UDPPacket extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final short
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    writePacket(ByteBuf byteBuf, ByteBuf payload, int srcPort, int dstPort)
    Write UDP Packet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • UDPPacket

      private UDPPacket()
  • Method Details

    • writePacket

      static void writePacket(ByteBuf byteBuf, ByteBuf payload, int srcPort, int dstPort)
      Write UDP Packet
      Parameters:
      byteBuf - ByteBuf where Packet data will be set
      payload - Payload of this Packet
      srcPort - Source Port
      dstPort - Destination Port