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.
Re-exportsยง
use digest::Digest;๐use futures::AsyncRead;๐use futures::AsyncWrite;๐use futures::SinkExt;๐use safelog::MaybeSensitive;๐use std::net::IpAddr;๐use std::ops::Deref;๐use std::sync::Arc;๐use tracing::trace;๐use tor_cell::chancell::msg;๐use tor_linkspec::OwnedChanTarget;๐use tor_rtcompat::CertifiedConn;๐use tor_rtcompat::CoarseTimeProvider;๐use tor_rtcompat::Runtime;๐use tor_rtcompat::SleepProvider;๐use tor_rtcompat::StreamOps;๐use crate::ClockSkew;๐use crate::RelayChannelAuthMaterial;๐use crate::Result;๐use crate::channel::Channel;๐use crate::channel::ChannelMode;๐use crate::channel::ClogDigest;๐use crate::channel::Reactor;๐use crate::channel::SlogDigest;๐use crate::channel::circmap::CircIdRange;๐use crate::channel::handshake::UnverifiedInitiatorChannel;๐use crate::channel::handshake::VerifiedChannel;๐use crate::peer::PeerAddr;๐use crate::peer::PeerInfo;๐use crate::relay::CreateRequestHandler;๐use crate::relay::channel::ChannelAuthenticationData;๐
Structsยง
- Unverified
Initiator Relay Channel - An unverified relay initiator channel.
- Verified
Initiator Relay Channel - A verified relay initiator channel.