Package net.i2p.router.tunnel.pool
Class ClientPeerSelector
- java.lang.Object
-
- net.i2p.router.tunnel.pool.ConnectChecker
-
- net.i2p.router.tunnel.pool.TunnelPeerSelector
-
- net.i2p.router.tunnel.pool.ClientPeerSelector
-
class ClientPeerSelector extends TunnelPeerSelector
Pick peers randomly out of the fast pool, and put them into tunnels ordered by XOR distance from a random key.
-
-
Field Summary
-
Fields inherited from class net.i2p.router.tunnel.pool.ConnectChecker
ANY_V4, ctx, log
-
-
Constructor Summary
Constructors Constructor Description ClientPeerSelector(RouterContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Hash>
selectPeers(TunnelPoolSettings settings)
Returns ENDPOINT FIRST, GATEWAY LAST!!!! In: us ..-
Methods inherited from class net.i2p.router.tunnel.pool.TunnelPeerSelector
checkTunnel, filterSlow, getClosestHopExclude, getExclude, getLength, isIPv6Only, orderPeers, selectExplicit, shouldExclude, shouldSelectExplicit
-
Methods inherited from class net.i2p.router.tunnel.pool.ConnectChecker
canConnect, canConnect, canConnect, getInboundMask, getOutboundMask, isNTCPDisabled, isSSUDisabled
-
-
-
-
Constructor Detail
-
ClientPeerSelector
public ClientPeerSelector(RouterContext context)
-
-
Method Detail
-
selectPeers
public List<Hash> selectPeers(TunnelPoolSettings settings)
Returns ENDPOINT FIRST, GATEWAY LAST!!!! In: us .. closest .. middle .. IBGW Out: OBGW .. middle .. closest .. us- Specified by:
selectPeers
in classTunnelPeerSelector
- Returns:
- ordered list of Hash objects (one per peer) specifying what order they should appear in a tunnel (ENDPOINT FIRST). This includes the local router in the list. If there are no tunnels or peers to build through, and the settings reject 0 hop tunnels, this will return null.
-
-