public class VMCommSystem extends CommSystemFacade
CommSystemFacade.StatusROUTER_BUNDLE_NAME, STATUS_DIFFERENT, STATUS_DISCONNECTED, STATUS_HOSED, STATUS_IPV4_DISABLED_IPV6_FIREWALLED, STATUS_IPV4_DISABLED_IPV6_OK, STATUS_IPV4_DISABLED_IPV6_UNKNOWN, STATUS_IPV4_FIREWALLED_IPV6_OK, STATUS_IPV4_FIREWALLED_IPV6_UNKNOWN, STATUS_IPV4_OK_IPV6_FIREWALLED, STATUS_IPV4_OK_IPV6_UNKNOWN, STATUS_IPV4_SNAT_IPV6_OK, STATUS_IPV4_SNAT_IPV6_UNKNOWN, STATUS_IPV4_UNKNOWN_IPV6_FIREWALLED, STATUS_IPV4_UNKNOWN_IPV6_OK, STATUS_OK, STATUS_REJECT_UNSOLICITED, STATUS_UNKNOWN| Constructor and Description |
|---|
VMCommSystem(RouterContext context) |
| Modifier and Type | Method and Description |
|---|---|
int |
countActivePeers()
How many peers are we currently connected to, that we have
sent a message to or received a message from in the last five minutes.
|
int |
countActiveSendPeers()
How many peers are we currently connected to, that we have
sent a message to in the last minute.
|
Set<net.i2p.data.Hash> |
getEstablished()
Get all the peers we are connected to.
|
X25519KeyFactory |
getXDHFactory()
Factory for making X25519 key pairs.
|
boolean |
isEstablished(net.i2p.data.Hash peer) |
void |
processMessage(OutNetMessage msg)
The router wants us to send the given message to the peer.
|
void |
receive(byte[] message,
net.i2p.data.Hash fromPeer)
We send messages between comms as bytes so that we strip any router-local
info.
|
void |
renderStatusHTML(Writer out,
String urlBase,
int sortFlags) |
void |
restart()
Perform a soft restart.
|
void |
shutdown()
Instruct the service that the router is shutting down and that it should do
whatever is necessary to go down gracefully.
|
void |
startup()
Instruct the service that it should start normal operation.
|
createAddresses, forceDisconnect, getCountry, getCountryName, getDHFactory, getFramedAveragePeerClockSkew, getIP, getLocalizedStatusString, getMedianPeerClockSkew, getMostRecentErrorMessages, getOurCountry, getReachabilityStatus, getStatus, getTransports, haveHighOutboundCapacity, haveInboundCapacity, haveOutboundCapacity, initGeoIP, isBacklogged, isDummy, isInStrictCountry, isInStrictCountry, isInStrictCountry, mayDisconnect, notifyRemoveAddress, notifyRemoveAddress, notifyReplaceAddress, queueLookup, recheckReachability, registerTransport, renderPeerHTML, renderStatusHTML, unregisterTransport, wasUnreachablepublic VMCommSystem(RouterContext context)
public X25519KeyFactory getXDHFactory()
getXDHFactory in class CommSystemFacadepublic int countActivePeers()
CommSystemFacadecountActivePeers in class CommSystemFacadepublic int countActiveSendPeers()
CommSystemFacadecountActiveSendPeers in class CommSystemFacadepublic boolean isEstablished(net.i2p.data.Hash peer)
isEstablished in class CommSystemFacadepublic Set<net.i2p.data.Hash> getEstablished()
CommSystemFacadegetEstablished in class CommSystemFacadepublic void processMessage(OutNetMessage msg)
processMessage in class CommSystemFacadepublic void receive(byte[] message,
net.i2p.data.Hash fromPeer)
public void shutdown()
Servicepublic void startup()
Servicepublic void restart()
Servicepublic void renderStatusHTML(Writer out, String urlBase, int sortFlags) throws IOException
renderStatusHTML in class CommSystemFacadeIOException