I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b3188a26 authored by obscuratus i2p's avatar obscuratus i2p Committed by idk
Browse files

Router: Update and Clarify the Inline Documentation for VMCommSystem

parent 0645359c
No related branches found
No related tags found
1 merge request!83Router: Update and Clarify the Inline Documentation for VMCommSystem
...@@ -30,12 +30,16 @@ import net.i2p.router.Router; ...@@ -30,12 +30,16 @@ import net.i2p.router.Router;
* <li>router.configLocation=rN/router.config</li> * <li>router.configLocation=rN/router.config</li>
* </ul> * </ul>
* (where "rN" is an instance number, such as r0 or r9). * (where "rN" is an instance number, such as r0 or r9).
* Additionally, two other properties might be useful:<ul> *
* <li>i2p.vmCommSystem=true</li> * Optionally, i2p.vmCommSystem=true can be enabled.
* </ul>
* The first line tells the router to use an in-VM comm system for sending
* messages back and forth between routers (see net.i2p.transport.VMCommSystem).
* *
* i2p.vmCommSystem=true tells the router to use an in-VM comm system for sending
* messages back and forth between routers (see net.i2p.transport.VMCommSystem).
*
* However, the default comm system implementation is usually preferred since
* enabling the VMCommSystem will bypass UDP and TCP, and therefore will not
* provide a test bed for many important I2P systems.
*
* To make the router console work, either run from a directory containing * To make the router console work, either run from a directory containing
* lib/, webapps/, docs/, etc., or point i2p.dir.base to a directory containing the * lib/, webapps/, docs/, etc., or point i2p.dir.base to a directory containing the
* above. * above.
......
...@@ -20,10 +20,23 @@ import net.i2p.router.transport.crypto.X25519KeyFactory; ...@@ -20,10 +20,23 @@ import net.i2p.router.transport.crypto.X25519KeyFactory;
import net.i2p.util.Log; import net.i2p.util.Log;
/** /**
* Hacked up in-VM comm system for talking between contexts. It doesn't even * Hacked up in-VM comm system for talking between contexts within the same Java
* generate any routerAddresses, but instead tracks the peers through a singleton. * virtual machine. It doesn't generate any routerAddresses, but instead tracks
* the peers through a singleton. It cannot connect to anything outside of its
* own Java VM. It does not implement TCP, UDP, and therefore no NTCP or SSU.
* Currently, the comm system doesn't even inject any lag, though it could (later). * 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. * It does honor the standard transport stats though, but no TCP or UDP specific
* ones (since UDP and TCP are not implemented).
*
* Typically, VMCommSystem is enabled by developers when it is desirable to
* test the router without enabling a real comm system. For a variety of
* testing purposes, it can be advantageous to start the router in a mode
* where contact with the actual network is disabled.
*
* VMCommSystem can be enabled with the following setting in the
* router.config file:
*
* i2p.vmCommSystem=true
* *
* FOR DEBUGGING AND LOCAL TESTING ONLY. * FOR DEBUGGING AND LOCAL TESTING ONLY.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment