|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.udp.IntroductionManager
class IntroductionManager
Keep track of inbound and outbound introductions.
Field Summary | |
---|---|
static int |
MAX_OUTBOUND
This is enforced in EstablishmentManager |
Constructor Summary | |
---|---|
IntroductionManager(RouterContext ctx,
UDPTransport transport)
|
Method Summary | |
---|---|
void |
add(PeerState peer)
|
(package private) int |
introducedCount()
|
(package private) int |
introducerCount()
Not as elaborate as pickInbound() above. |
int |
pickInbound(Properties ssuOptions,
int howMany)
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). |
void |
pingIntroducers()
Was part of pickInbound(), moved out so we can call it more often |
(package private) void |
receiveRelayIntro(RemoteHostId bob,
UDPPacketReader reader)
We are Charlie and we got this from Bob. |
(package private) void |
receiveRelayRequest(RemoteHostId alice,
UDPPacketReader reader)
We are Bob and we got this from Alice. |
void |
remove(PeerState peer)
|
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_OUTBOUND
Constructor Detail |
---|
public IntroductionManager(RouterContext ctx, UDPTransport transport)
Method Detail |
---|
public void reset()
public void add(PeerState peer)
public void remove(PeerState peer)
public int pickInbound(Properties ssuOptions, int howMany)
public void pingIntroducers()
int introducerCount()
int introducedCount()
void receiveRelayIntro(RemoteHostId bob, UDPPacketReader reader)
void receiveRelayRequest(RemoteHostId alice, UDPPacketReader reader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |