net.i2p.router.transport
public interface Transport
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE_CONFIG |
static String |
SOURCE_INTERFACE |
static String |
SOURCE_UPNP |
Modifier and Type | Method and Description |
---|---|
TransportBid |
bid(RouterInfo toAddress,
long dataSize) |
int |
countActivePeers() |
int |
countActiveSendPeers() |
int |
countPeers() |
void |
externalAddressReceived(String source,
byte[] ip,
int port) |
void |
forwardPortStatus(int port,
boolean success,
String reason) |
Vector |
getClockSkews() |
RouterAddress |
getCurrentAddress() |
List |
getMostRecentErrorMessages() |
short |
getReachabilityStatus() |
int |
getRequestedPort() |
String |
getStyle() |
boolean |
haveCapacity() |
boolean |
haveCapacity(int pct) |
boolean |
isBacklogged(Hash dest) |
boolean |
isEstablished(Hash peer) |
boolean |
isUnreachable(Hash peer) |
void |
recheckReachability() |
void |
renderStatusHTML(Writer out,
String urlBase,
int sortFlags) |
void |
send(OutNetMessage msg)
Asynchronously send the message as requested in the message and, if the
send is successful, queue up any msg.getOnSendJob job, and register it
with the OutboundMessageRegistry (if it has a reply selector).
|
void |
setListener(TransportEventListener listener) |
RouterAddress |
startListening() |
void |
stopListening() |
RouterAddress |
updateAddress() |
boolean |
wasUnreachable(Hash dest) |
static final String SOURCE_UPNP
static final String SOURCE_INTERFACE
static final String SOURCE_CONFIG
TransportBid bid(RouterInfo toAddress, long dataSize)
void send(OutNetMessage msg)
RouterAddress startListening()
void stopListening()
RouterAddress getCurrentAddress()
RouterAddress updateAddress()
void externalAddressReceived(String source, byte[] ip, int port)
void forwardPortStatus(int port, boolean success, String reason)
int getRequestedPort()
void setListener(TransportEventListener listener)
String getStyle()
int countPeers()
int countActivePeers()
int countActiveSendPeers()
boolean haveCapacity()
boolean haveCapacity(int pct)
Vector getClockSkews()
List getMostRecentErrorMessages()
void renderStatusHTML(Writer out, String urlBase, int sortFlags) throws IOException
IOException
short getReachabilityStatus()
void recheckReachability()
boolean isBacklogged(Hash dest)
boolean wasUnreachable(Hash dest)
boolean isUnreachable(Hash peer)
boolean isEstablished(Hash peer)