com.ibm.as400.util.commtrace

Class TCPHeader



  • public class TCPHeader
    extends Header
    A TCP Header.
    Extends Header's methods to parse, print, and allow easy access to the TCP Header.
    • Method Detail

      • getHeaderLen

        public int getHeaderLen()
        Returns the length of this header.
        Overrides:
        getHeaderLen in class Header
        Returns:
        The length of this header.
      • toString

        public java.lang.String toString(FormatProperties filter)
        Returns a printable representation of this header.
        Overrides:
        toString in class Header
        Parameters:
        filter - FormatProperties object for filtering this header.
        Returns:
        Returns a string representation of this header.
      • getSrcPort

        public java.lang.String getSrcPort()
        Returns the source port for this TCP header.
        Returns:
        String containing a decimal representation of the source port.
      • getDstPort

        public java.lang.String getDstPort()
        Returns the destination port for this TCP header.
        Returns:
        String containing a decimal representation of the destination port.
      • getSequence

        public java.lang.String getSequence()
        Returns the sequence for this TCP header.
        Returns:
        String containing a decimal representation of the sequence.
      • getAckNum

        public java.lang.String getAckNum()
        Returns the ack number for this TCP header.
        Returns:
        String containing a decimal representation of the ack number.
      • getDataOffset

        public java.lang.String getDataOffset()
        Returns the data offset for this TCP header.
        Returns:
        String containing a decimal representation of the data offset.
      • getCWRFlag

        public java.lang.String getCWRFlag()
        Returns the cwr Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "CWR " otherwise it will be an empty string.
      • getECEFlag

        public java.lang.String getECEFlag()
        Returns the ece Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "ECE " otherwise it will be an empty string.
      • getURGFlag

        public java.lang.String getURGFlag()
        Returns the urg Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "URG " otherwise it will be an empty string.
      • getACKFlag

        public java.lang.String getACKFlag()
        Returns the ack Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "ACK " otherwise it will be an empty string.
      • getPSHFlag

        public java.lang.String getPSHFlag()
        Returns the psh Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "PSH " otherwise it will be an empty string.
      • getRSTFlag

        public java.lang.String getRSTFlag()
        Returns the rst Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "RST " otherwise it will be an empty string.
      • getSYNFlag

        public java.lang.String getSYNFlag()
        Returns the syn Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "SYN " otherwise it will be an empty string.
      • getFINFlag

        public java.lang.String getFINFlag()
        Returns the fin Flag for this TCP header.
        Returns:
        String if the field is a 1 this string will contain "FIN " otherwise it will be an empty string.
      • getWindow

        public java.lang.String getWindow()
        Returns the window for this TCP header.
        Returns:
        String containing a decimal representation of the window.
      • getCheckSum

        public java.lang.String getCheckSum()
        Returns the checksum for this TCP header.
        Returns:
        String containing a decimal representation of the checksum.
      • getUrgentPointer

        public java.lang.String getUrgentPointer()
        Returns the urgent pointer for this TCP header.
        Returns:
        String containing a decimal representation of the urgent pointer.
      • getOptions

        public java.lang.String getOptions()
        Returns the options for this TCP header.
        Returns:
        String containing a decimal representation of the options.
      • getOption

        public java.lang.String getOption()
        Returns the first 8 bits of the options for this TCP header.
        Returns:
        String containing a decimal representation of the options.
      • getMaximumSegmentSize

        public java.lang.String getMaximumSegmentSize()
        Returns the Maximum Segment Size option for this TCP header.
        Returns:
        String containing a decimal representation of the Maximum Segment Size option.
      • getSegmentSize

        public java.lang.String getSegmentSize()
        Returns the Segment Size option for this TCP header.
        Returns:
        String containing a decimal representation of the Segment Size option.