public interface ExitCircuit extends Circuit
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleExitTo(ExitTarget target)
Return true if the final node of this circuit is believed to be able to connect to
the specified
ExitTarget. |
boolean |
canHandleExitToPort(int port) |
Stream |
openExitStream(IPv4Address address,
int port,
long timeout)
Open an exit stream from the final node in this circuit to the
specified target address and port.
|
Stream |
openExitStream(String hostname,
int port,
long timeout)
Open an exit stream from the final node in this circuit to the
specified target hostname and port.
|
void |
recordFailedExitTarget(ExitTarget target)
Records the specified
ExitTarget as a failed connection so that canHandleExitTo(ExitTarget) will
no longer return true for this exit destination. |
appendNode, createRelayCell, deliverControlCell, deliverRelayCell, destroyCircuit, getActiveStreams, getCircuitId, getConnection, getFinalCircuitNode, getSecondsDirty, isClean, isConnected, isMarkedForClose, isPending, markForClose, receiveRelayCell, sendRelayCellStream openExitStream(IPv4Address address, int port, long timeout) throws InterruptedException, TimeoutException, StreamConnectFailedException
address - The network address of the exit target.port - The port of the exit target.InterruptedExceptionTimeoutExceptionStreamConnectFailedExceptionStream openExitStream(String hostname, int port, long timeout) throws InterruptedException, TimeoutException, StreamConnectFailedException
hostname - The network hostname of the exit target.port - The port of the exit target.InterruptedExceptionTimeoutExceptionStreamConnectFailedExceptionboolean canHandleExitTo(ExitTarget target)
ExitTarget. Returns false if the target destination is
not permitted by the exit policy of the final node in this circuit or if the target
has been previously recorded to have failed through this circuit.target - The exit destination.boolean canHandleExitToPort(int port)
void recordFailedExitTarget(ExitTarget target)
ExitTarget as a failed connection so that canHandleExitTo(ExitTarget) will
no longer return true for this exit destination.target - The ExitTarget to which a connection has failed through this circuit.Copyright © 2015. All rights reserved.