public void BuildOneHopRelay() { // Retrieve current consensus either from cache or from the network. Consensus consensus = Consensus.Fetch(RetrievalOptions.None); TorSocket socket = new TorSocket(); using (Circuit circuit = new Circuit(socket)) { circuit.Create(consensus.GetRandomRouter()); } }
public ClientNode() { _consensus = Consensus.Fetch(RetrievalOptions.DoNotUseCache); }
public void BuildConsensusFromCache() { Consensus consensus = Consensus.Fetch(RetrievalOptions.UseCache); return; }
public void DownloadConsensus() { Consensus consensus = Consensus.Fetch(RetrievalOptions.ForceDownload); return; }