public interface CircuitManager
| Modifier and Type | Field and Description |
|---|---|
static int |
DIRECTORY_PURPOSE_CERTIFICATES |
static int |
DIRECTORY_PURPOSE_CONSENSUS |
static int |
DIRECTORY_PURPOSE_DESCRIPTORS |
| Modifier and Type | Method and Description |
|---|---|
Circuit |
getCleanInternalCircuit() |
DirectoryCircuit |
openDirectoryCircuit() |
DirectoryCircuit |
openDirectoryCircuitTo(List<Router> path) |
Stream |
openDirectoryStream() |
Stream |
openDirectoryStream(int purpose) |
ExitCircuit |
openExitCircuitTo(List<Router> path) |
Stream |
openExitStreamTo(IPv4Address address,
int port)
Attempt to open an exit stream to the destination specified by
address and
port. |
Stream |
openExitStreamTo(String hostname,
int port)
Attempt to open an exit stream to the specified destination
hostname and
port. |
InternalCircuit |
openInternalCircuitTo(List<Router> path) |
void |
startBuildingCircuits()
Begin automatically building new circuits in the background.
|
void |
stopBuildingCircuits(boolean killCircuits) |
static final int DIRECTORY_PURPOSE_CONSENSUS
static final int DIRECTORY_PURPOSE_CERTIFICATES
static final int DIRECTORY_PURPOSE_DESCRIPTORS
void startBuildingCircuits()
void stopBuildingCircuits(boolean killCircuits)
Stream openExitStreamTo(String hostname, int port) throws InterruptedException, TimeoutException, OpenFailedException
hostname and
port.hostname - The name of the host to open an exit connection to.port - The port to open an exit connection to.InterruptedExceptionTimeoutExceptionOpenFailedExceptionStream openExitStreamTo(IPv4Address address, int port) throws InterruptedException, TimeoutException, OpenFailedException
address and
port.address - The address to open an exit connection to.port - The port to open an exit connection to.InterruptedExceptionTimeoutExceptionOpenFailedExceptionStream openDirectoryStream(int purpose) throws InterruptedException, TimeoutException, OpenFailedException
Stream openDirectoryStream() throws InterruptedException, TimeoutException, OpenFailedException
DirectoryCircuit openDirectoryCircuit() throws OpenFailedException
OpenFailedExceptionCircuit getCleanInternalCircuit() throws InterruptedException
InterruptedExceptionExitCircuit openExitCircuitTo(List<Router> path) throws OpenFailedException
OpenFailedExceptionInternalCircuit openInternalCircuitTo(List<Router> path) throws OpenFailedException
OpenFailedExceptionDirectoryCircuit openDirectoryCircuitTo(List<Router> path) throws OpenFailedException
OpenFailedExceptionCopyright © 2015. All rights reserved.