Package com.subgraph.orchid

Examples of com.subgraph.orchid.HiddenServiceCircuit.openStream()

  public Stream getStreamTo(String onion, int port) throws OpenFailedException, InterruptedException, TimeoutException {
    final HiddenService hs = getHiddenServiceForOnion(onion);
    final HiddenServiceCircuit circuit = getCircuitTo(hs);
    try {
      return circuit.openStream(port, HS_STREAM_TIMEOUT);
    } catch (StreamConnectFailedException e) {
      throw new OpenFailedException("Failed to open stream to hidden service "+ hs.getOnionAddressForLogging() + " reason "+ e.getReason());
View Full Code Here

Copyright © 2018 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