Function iroh_mainline_content_discovery::connect
source · pub async fn connect(tracker: &TrackerId, local_port: u16) -> Result<Connection>
Expand description
Connect to a tracker using the crate::protocol::ALPN protocol, using either a node id or an address.
Note that this is less efficient than using an existing endpoint when doing multiple requests. It is provided as a convenience function for short lived utilities.