Skip to main content

Module connect

Module connect 

Source
Expand description

Main implementation of the connection functionality

Macrosยง

DataTunnel ๐Ÿ”’
Given R, M where M: MocksForConnect<M>, expand to the mockable ClientCirc

Structsยง

Context ๐Ÿ”’
Common context for a single request to connect to a hidden service
Data
Information about a hidden service, including our connection history
Introduced ๐Ÿ”’
Details of an apparently-successful INTRODUCE exchange
IptExperience ๐Ÿ”’
How things went last time we tried to use this introduction point
IptSortKey ๐Ÿ”’
Sort key for an introduction point, for selecting the best IPTs to try first
RelayIdForExperience ๐Ÿ”’
Lookup key for looking up and recording our IPT use experiences
Rendezvous ๐Ÿ”’
Details of an established rendezvous point
UsableIntroPt ๐Ÿ”’
Details of an apparently-useable introduction point

Enumsยง

IptSortKeyOutcome ๐Ÿ”’
Component of the IptSortKey representing outcome of our last attempt, if any

Constantsยง

HOPS ๐Ÿ”’
Number of hops in our hsdir, introduction, and rendezvous circuits

Traitsยง

MockableCircPool ๐Ÿ”’
Mock for HsCircPool
MockableClientData ๐Ÿ”’
Mock for onion service client data tunnel.
MockableClientDir ๐Ÿ”’
Mock for onion service client directory tunnel.
MockableClientIntro ๐Ÿ”’
Mock for onion service client introduction tunnel.
MocksForConnect ๐Ÿ”’
Mocks used for testing connect.rs

Functionsยง

connect ๐Ÿ”’
Actually make a HS connection, updating our recorded state as necessary

Type Aliasesยง

DataHsDesc ๐Ÿ”’
Part of Data that relates to the HS descriptor
DataIpts ๐Ÿ”’
Part of Data that relates to our information about introduction points
IptSortRand ๐Ÿ”’
Random value used as part of IPT selection