TunnelPeerSelector
public class ConnectChecker
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static int |
ANY_V4 |
|
protected RouterContext |
ctx |
|
protected Log |
log |
コンストラクタ | 説明 |
---|---|
ConnectChecker(RouterContext context) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
canConnect(int ourMask,
RouterInfo to) |
Can we connect to "to" based on published addresses?
This is intended for tunnel candidates, where we already have
the RI.
|
boolean |
canConnect(Hash from,
Hash to) |
Can "from" connect to "to" based on published addresses?
This is intended for tunnel candidates, where we already have
the RI.
|
boolean |
canConnect(RouterInfo from,
int ourMask) |
Can "from" connect to us based on published addresses?
This is intended for tunnel candidates, where we already have
the RI.
|
int |
getInboundMask(RouterInfo us) |
Our inbound mask.
|
int |
getOutboundMask(RouterInfo us) |
Our outbound mask.
|
protected boolean |
isNTCPDisabled() |
Is NTCP disabled?
|
protected boolean |
isSSUDisabled() |
Is SSU disabled?
|
protected final RouterContext ctx
protected final Log log
public static final int ANY_V4
public ConnectChecker(RouterContext context)
protected boolean isNTCPDisabled()
protected boolean isSSUDisabled()
public boolean canConnect(Hash from, Hash to)
public boolean canConnect(int ourMask, RouterInfo to)
public boolean canConnect(RouterInfo from, int ourMask)
public int getInboundMask(RouterInfo us)
public int getOutboundMask(RouterInfo us)