Module transport

Source
Expand description

Support for identifying a particular transport.

A “transport” is a mechanism to connect to a relay on the Tor network and make a Channel. Currently, two types of transports exist: the “built-in” transport, which uses TLS over TCP, and various anti-censorship “pluggable transports”, which use TLS over other protocols to avoid detection by censors.

Structs§

BridgeAddr
An address of a bridge, for use in configuration.
PtTarget
The set of information passed to the pluggable transport subsystem in order to establish a connection to a bridge relay.
PtTargetSettings
A set of options to be passed along to a pluggable transport along with a single target bridge relay.
PtTransportName
The name of a Pluggable Transport protocol.
TransportId
Identify a type of Transport.

Enums§

BridgeAddrError
An error from parsing a BridgeAddr or PtTargetAddr.
BridgeAddrInner 🔒
BridgeAddr contents; type parameters allow use with references to avoid some copying
ChannelMethod
The way to approach a single relay in order to open a channel.
Inner 🔒
Helper type to implement TransportId.
PtTargetAddr
An address that an be passed to a pluggable transport to tell it where to connect (typically, to a bridge).
PtTargetInvalidSetting
Invalid PT parameter setting
RetainAddrsError
An error that occurred while filtering addresses from a ChanMethod.
TransportIdError
An error related to parsing a TransportId.

Constants§

BUILT_IN_IDS 🔒
These identifiers are used to indicate the built-in transport.
NONE_ADDR 🔒
This identifier is used to indicate no transport address.

Functions§

is_well_formed_id 🔒
Return true if s is a well-formed transport ID.