All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cisco.trex.stateful.api.lowlevel.ASTFTCPInfo Maven / Gradle / Ivy

There is a newer version: 1.69
Show newest version
package com.cisco.trex.stateful.api.lowlevel;

import org.apache.commons.lang3.StringUtils;

/** Java implementation for TRex python sdk _ASTFTCPInfo class */
class ASTFTCPInfo {
  private int port;

  /**
   * construct
   *
   * @param filePath
   */
  ASTFTCPInfo(String filePath) {
    if (!StringUtils.isEmpty(filePath)) {
      CpcapReader cap = CapHandling.cpcapReader(filePath);
      cap.analyze();
      this.port = cap.getDstPort();
    }
  }

  /**
   * getPort
   *
   * @return port
   */
  public int getPort() {
    return port;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy