Class TCPPacket

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

final class TCPPacket extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static enum 
     
  • Field Summary

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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    writePacket(ByteBuf byteBuf, ByteBuf payload, int segmentNumber, int 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 Details

    • OFFSET

      private static final short OFFSET
      Data Offset + Reserved Bits.
      See Also:
  • Constructor Details

    • TCPPacket

      private TCPPacket()
  • Method Details

    • writePacket

      static void writePacket(ByteBuf byteBuf, ByteBuf payload, int segmentNumber, int 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