|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.CommSystemFacade
net.i2p.router.transport.VMCommSystem
public class VMCommSystem
Hacked up in-VM comm system for talking between contexts. It doesn't even generate any routerAddresses, but instead tracks the peers through a singleton. Currently, the comm system doesn't even inject any lag, though it could (later). It does honor the standard transport stats though, but not the TCP specific ones.
Field Summary |
---|
Fields inherited from class net.i2p.router.CommSystemFacade |
---|
STATUS_DIFFERENT, STATUS_OK, STATUS_REJECT_UNSOLICITED, STATUS_UNKNOWN |
Constructor Summary | |
---|---|
VMCommSystem(RouterContext context)
|
Method Summary | |
---|---|
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(java.io.OutputStream out)
|
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. |
Methods inherited from class net.i2p.router.CommSystemFacade |
---|
countActivePeers, countActiveSendPeers, createAddresses, getFramedAveragePeerClockSkew, getMedianPeerClockSkew, getMostRecentErrorMessages, getReachabilityStatus, isBacklogged, notifyReplaceAddress, recheckReachability, renderStatusHTML, renderStatusHTML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VMCommSystem(RouterContext context)
Method Detail |
---|
public void processMessage(OutNetMessage msg)
processMessage
in class CommSystemFacade
public void receive(byte[] message, Hash fromPeer)
public void shutdown()
Service
public void startup()
Service
public void restart()
Service
public void renderStatusHTML(java.io.OutputStream out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |