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()Return the count of active peers |
int | countActiveSendPeers()Return the count of active send peers |
List<Hash> | getEstablished()Return the established |
X25519KeyFactory | getXDHFactory()Factory for making X25519 key pairs. |
boolean | isEstablished(Hash peer)Return whether established |
void | processMessage(OutNetMessage msg)The router wants us to send the given message to the peer. |
void | receive(byte[] message,
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)Render the transport status section of the router console page. |
void | restart()Restart the service |
void | shutdown()Shut down and release resources |
void | startup()Start up and initialize |
createAddresses, exemptIncoming, forceDisconnect, forceDisconnect, getCanonicalHostName, getCanonicalHostNameSync, getCountries, getCountry, getCountry, getCountryName, getFramedAveragePeerClockSkew, getIP, getLocalHostName, getLocalizedStatusString, getMedianPeerClockSkew, getMostRecentErrorMessages, getOurCountry, getStatus, getTransports, haveHighOutboundCapacity, haveInboundCapacity, haveOutboundCapacity, initGeoIP, isBacklogged, isConnecting, isDummy, isExemptIncoming, isInStrictCountry, isInStrictCountry, isInStrictCountry, isRunning, mayDisconnect, notifyRemoveAddress, notifyRemoveAddress, notifyReplaceAddress, queueLookup, registerTransport, removeExemption, renderPeerCaps, renderPeerFlag, renderPeerHTML, renderStatusHTML, unregisterTransport, wasUnreachablepublic VMCommSystem(RouterContext context)
public int countActivePeers()
countActivePeers in class CommSystemFacadepublic int countActiveSendPeers()
public List<Hash> getEstablished()
getEstablished in class CommSystemFacadepublic X25519KeyFactory getXDHFactory()
getXDHFactory in class CommSystemFacadepublic boolean isEstablished(Hash peer)
isEstablished in class CommSystemFacadepeer - the peerpublic void processMessage(OutNetMessage msg)
processMessage in class CommSystemFacademsg - the message to sendpublic void receive(byte[] message,
Hash fromPeer)public void renderStatusHTML(Writer out, String urlBase, int sortFlags) throws IOException
CommSystemFacaderenderStatusHTML in class CommSystemFacadeout - destination writerurlBase - base URL for links, may be nullsortFlags - flags controlling sort orderIOException - on write errorpublic void restart()
public void shutdown()
public void startup()