Packages that use ClientPeerSelector.SelectionParams
Package
Description
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Uses of ClientPeerSelector.SelectionParams in net.i2p.router.tunnel.pool
Methods in net.i2p.router.tunnel.pool that return ClientPeerSelector.SelectionParamsModifier and TypeMethodDescriptionClientPeerSelector.computeSelectionParams(TunnelPoolSettings settings, int length, boolean isInbound) Compute the shared selection parameters: tier priority, closest-hop checks, hidden flags and the IP restriction.Methods in net.i2p.router.tunnel.pool with parameters of type ClientPeerSelector.SelectionParamsModifier and TypeMethodDescriptionClientPeerSelector.applyShortfallFallbacks(TunnelPoolSettings settings, List<Hash> rv, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Progressive fallbacks when the selected peers are short of the requested length.ClientPeerSelector.buildLastHopExclude(ClientPeerSelector.SelectionParams params, Set<Hash> exclude) Build the last-hop exclusion set: closest-hop wrapped for inbound, OBEP wrapped for outbound.private intClientPeerSelector.collectFromTier(List<Hash> rv, int min, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) One cascading tier selection.private intClientPeerSelector.fillRemainingHops(List<Hash> rv, int min, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Topsrvup tominhops from the tier ladder, inserting new middle hops before the vetted first hop so rv keeps its [endpoint ..private voidClientPeerSelector.refillFirstHop(ClientPeerSelector.SelectionParams params, SessionKey randomKey, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches, boolean inStartup) Refill the first-hop candidate batch after a quality-loop ejection.private voidClientPeerSelector.selectFirstHop(int length, ClientPeerSelector.SelectionParams params, SessionKey randomKey, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches) Select the first hop, IBGW for inbound and the closest outbound peer otherwise, with a quality loop and pre-connect.ClientPeerSelector.selectHops(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Single-hop or multi-hop selection for one tunnel length.ClientPeerSelector.selectHopsWithRetry(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex) Draws every hop, drops unsuitable peers (ghost and banlisted), and redraws once from a fresh exclusion set when filtering emptied the selection.private booleanClientPeerSelector.selectLastHop(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, SessionKey randomKey, Set<Hash> lastHopExclude, Set<Hash> rawExclude, ArraySet<Hash> matches) Select the last hop (hidden-inbound closest hop, hidden-outbound OBEP, or normal OBEP).private voidClientPeerSelector.selectMiddleHops(int length, ClientPeerSelector.SelectionParams params, SessionKey randomKey, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches, List<Hash> rv) Select the middle hop(s) of a tunnel longer than 2 hops, subtiers 2-3, quality-ordered.ClientPeerSelector.selectMultiHop(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches) Select all hops of a multi-hop tunnel: last hop, middle hops, then first hop.ClientPeerSelector.selectSingleHop(TunnelPoolSettings settings, int length, ClientPeerSelector.SelectionParams params, ClientPeerSelector.SelectionExclusions ex, ArraySet<Hash> matches) Select the single hop of a 1-hop tunnel (with hidden-inbound special case).private voidClientPeerSelector.topUpFromFastTier(ClientPeerSelector.SelectionParams params, Set<Hash> exclude, ArraySet<Hash> matches) Add Fast-tier candidates until the batch is full, used when the first hop is widening past the HighCapacity tier it started from.private voidClientPeerSelector.topUpFromHighCapacityTier(ClientPeerSelector.SelectionParams params, Set<Hash> exclude, ArraySet<Hash> matches) Add HighCapacity-tier candidates until the batch is full.