Class TCPPacket


  • final class TCPPacket
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  TCPPacket.TCPFlag  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static short OFFSET
      Data Offset + Reserved Bits.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TCPPacket()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void writePacket​(ByteBuf byteBuf, ByteBuf payload, long segmentNumber, long ackNumber, int srcPort, int dstPort, TCPPacket.TCPFlag... tcpFlags)
      Write TCP Packet
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • TCPPacket

        private TCPPacket()
    • Method Detail

      • writePacket

        static void writePacket​(ByteBuf byteBuf,
                                ByteBuf payload,
                                long segmentNumber,
                                long ackNumber,
                                int srcPort,
                                int dstPort,
                                TCPPacket.TCPFlag... tcpFlags)
        Write TCP Packet
        Parameters:
        byteBuf - ByteBuf where Packet data will be set
        payload - Payload of this Packet
        srcPort - Source Port
        dstPort - Destination Port