public class IntroductionManager
- extends java.lang.Object
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IntroductionManager(RouterContext ctx,
public void reset()
public void add(PeerState peer)
public void remove(PeerState peer)
public PeerState get(long id)
public int pickInbound(java.util.Properties ssuOptions,
- Grab a bunch of peers who are willing to be introducers for us that
are locally known (duh) and have published their own SSU address (duh^2).
The picked peers have their info tacked on to the ssuOptions parameter for
use in the SSU RouterAddress.
Try to use "good" peers (i.e. reachable, active)
Also, ping all idle peers that were introducers in the last 2 hours,
to keep the connection up, since the netDb can have quite stale information,
and we want to keep our introducers valid.
- Not as elaborate as pickInbound() above.
Just a quick check to see how many volunteers we know,
which the Transport uses to see if we need more.
- number of peers that have volunteerd to introduce us
void receiveRelayIntro(RemoteHostId bob,
void receiveRelayRequest(RemoteHostId alice,