Package com.subgraph.orchid.circuits

Source Code of com.subgraph.orchid.circuits.PredictedPortTarget

package com.subgraph.orchid.circuits;

import com.subgraph.orchid.data.IPv4Address;
import com.subgraph.orchid.data.exitpolicy.ExitTarget;

public class PredictedPortTarget implements ExitTarget {
 
  final int port;

  public PredictedPortTarget(int port) {
    this.port = port;
  }

  public boolean isAddressTarget() {
    return false;
  }

  public IPv4Address getAddress() {
    return new IPv4Address(0);
  }

  public String getHostname() {
    return "";
  }

  public int getPort() {
    return port;
  }
}
TOP

Related Classes of com.subgraph.orchid.circuits.PredictedPortTarget

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.