Skip to main content

Module initiator

Module initiator 

Source
Expand description

Relay initiator channel.

Code only related to a relay channel opened as an initiator. The handshake code is responsible for creating an UnverifiedInitiatorRelayChannel when connecting to another relay in order to build a tor channel.

The UnverifiedInitiatorRelayChannel::verify function needs to be called to verify the underlying channel and build a VerifiedInitiatorRelayChannel channel which needs to be finished with VerifiedInitiatorRelayChannel::finish to get a Channel/Reactor.

Note that channel cells are sent in the handshake upon connection. And then in the finish() process. The verify can be CPU intensive and thus in its own function.

Structsยง

UnverifiedInitiatorRelayChannel
An unverified relay initiator channel.
VerifiedInitiatorRelayChannel
A verified relay initiator channel.