Skip to main content

Module hspool

Module hspool 

Source
Expand description

Manage a pool of circuits for usage with onion services.

Modulesยง

config ๐Ÿ”’
Configuration logic for HsCircPool.
pool ๐Ÿ”’
An internal pool object that we use to implement HsCircPool.

Structsยง

HsCircPool
An object to provide circuits for implementing onion services.
HsCircPoolInner ๐Ÿ”’
An object to provide circuits for implementing onion services.
HsCircStem ๐Ÿ”’
A hidden service circuit stem.
Inner ๐Ÿ”’
The mutable state of an HsCircPool

Enumsยง

HsCircKind
The (onion-service-related) purpose for which a given circuit is going to be used.
HsCircStemKind ๐Ÿ”’
A kind of hidden service circuit stem.
NoRelayForPathEnt ๐Ÿ”’
A possible error condition when trying to look up a PathEntry

Traitsยง

HsCircPoolConfig
Configuration for an HsCircPool.

Functionsยง

circuit_compatible_with_target ๐Ÿ”’
Return true if we can extend a pre-built circuit circ to target.
circuit_still_useable ๐Ÿ”’
Return true if we can still use a given pre-build circuit.
launch_hs_circuits_as_needed ๐Ÿ”’
Background task to launch onion circuits as needed.
relay_for_path_ent ๐Ÿ”’
Look up a relay in a netdir corresponding to ent
remove_unusable_circuits ๐Ÿ”’
Background task to remove unusable circuits whenever the directory changes.
vanguards_circuit_compatible_with_target ๐Ÿ”’
Return true if we can extend a pre-built vanguards circuit circ to target.