Class UDPPacket


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

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

      Constructors 
      Modifier Constructor Description
      private UDPPacket()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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
    • Constructor Detail

      • UDPPacket

        private UDPPacket()
    • Method Detail

      • 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