Package com.subgraph.orchid

Examples of com.subgraph.orchid.Circuit


    if(exitRouter == null) {
      logger.warning("Failed to select suitable exit node for targets");
      return;
    }
   
    final Circuit circuit = circuitManager.createNewExitCircuit(exitRouter);
    final CircuitCreationRequest request = new CircuitCreationRequest(pathChooser, circuit, buildHandler, false);
    final CircuitBuildTask task = new  CircuitBuildTask(request, connectionCache, circuitManager.isNtorEnabled(), initializationTracker);
    executor.execute(task);
  }
View Full Code Here


    return hiddenService.getOnionAddressForLogging();
  }
 
  private IntroductionProcessor openIntroduction() {
    for(IntroductionPoint ip: serviceDescriptor.getShuffledIntroductionPoints()) {
      final Circuit circuit = attemptOpenIntroductionCircuit(ip);
      if(circuit != null) {
        return new IntroductionProcessor(hiddenService, circuit, ip);
      }
    }
    return null;
View Full Code Here

    }
  }

  private void processRelayCell(Cell cell) {
    synchronized(circuitMap) {
      final Circuit circuit = circuitMap.get(cell.getCircuitId());
      if(circuit == null) {
        logger.warning("Could not deliver relay cell for circuit id = "+ cell.getCircuitId() +" on connection "+ this +". Circuit not found");
        return;
      }
      circuit.deliverRelayCell(cell);
    }
  }
View Full Code Here

    }
  }

  private void processControlCell(Cell cell) {
    synchronized(circuitMap) {
      final Circuit circuit = circuitMap.get(cell.getCircuitId());
      if(circuit != null) {
        circuit.deliverControlCell(cell);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.Circuit

Copyright © 2018 www.massapicom. 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.