Class TcpHeader.Builder

  • Enclosing class:
    TcpHeader

    public static final class TcpHeader.Builder
    extends java.lang.Object
    Builder class for TcpHeader.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of TcpHeader.
    • Method Detail

      • setDstPort

        public TcpHeader.Builder setDstPort​(java.lang.Long dstPort)
        Destination port of tcp header format: int64
        Parameters:
        dstPort - New value for the property.
      • setSrcPort

        public TcpHeader.Builder setSrcPort​(java.lang.Long srcPort)
        Source port of tcp header format: int64
        Parameters:
        srcPort - New value for the property.
      • setTcpFlags

        public TcpHeader.Builder setTcpFlags​(java.lang.Long tcpFlags)
        TCP flags (9bits) format: int64
        Parameters:
        tcpFlags - New value for the property.