Package | Description |
---|---|
net.i2p.data.router |
Classes formerly in net.i2p.data but moved here as they are only used by the router.
|
net.i2p.router |
The I2P router application handles the I2P network communication.
|
net.i2p.router.message |
Creates and parses garlic messages.
|
net.i2p.router.networkdb |
A couple of classes, but most things are in kademlia.
|
net.i2p.router.networkdb.kademlia |
The network database, including implementation of floodfills.
|
net.i2p.router.startup |
The I2P startup package loads the configuration when I2P is started.
|
net.i2p.router.transport |
The transport system allows the usage of communication layers that are below I2P in the stack, on which I2P messages are sent.
|
net.i2p.router.transport.ntcp |
The NTCP transport allows passing I2P messages on top of TCP.
|
net.i2p.router.transport.udp |
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
|
Modifier and Type | Method and Description |
---|---|
RouterIdentity |
RouterInfo.getIdentity()
Retrieve the identity of the router represented
|
RouterIdentity |
RouterPrivateKeyFile.getRouterIdentity()
Read it in from the file.
|
Modifier and Type | Method and Description |
---|---|
void |
RouterInfo.setIdentity(RouterIdentity ident)
Configure the identity of the router represented
|
Modifier and Type | Method and Description |
---|---|
int |
InNetMessagePool.add(I2NPMessage messageBody,
RouterIdentity fromRouter,
Hash fromRouterHash)
Add a new message to the pool.
|
Job |
HandlerJobBuilder.createJob(I2NPMessage receivedMessage,
RouterIdentity from,
Hash fromHash)
Create a new job to handle the received message.
|
Modifier and Type | Method and Description |
---|---|
Job |
GarlicMessageHandler.createJob(I2NPMessage receivedMessage,
RouterIdentity from,
Hash fromHash) |
Constructor and Description |
---|
HandleGarlicMessageJob(RouterContext context,
GarlicMessage msg,
RouterIdentity from,
Hash fromHash) |
Constructor and Description |
---|
HandleDatabaseLookupMessageJob(RouterContext ctx,
DatabaseLookupMessage receivedMessage,
RouterIdentity from,
Hash fromHash) |
Modifier and Type | Method and Description |
---|---|
Job |
FloodfillDatabaseStoreMessageHandler.createJob(I2NPMessage receivedMessage,
RouterIdentity from,
Hash fromHash) |
Job |
FloodfillDatabaseLookupMessageHandler.createJob(I2NPMessage receivedMessage,
RouterIdentity from,
Hash fromHash) |
Constructor and Description |
---|
HandleFloodfillDatabaseLookupMessageJob(RouterContext ctx,
DatabaseLookupMessage receivedMessage,
RouterIdentity from,
Hash fromHash) |
HandleFloodfillDatabaseStoreMessageJob(RouterContext ctx,
DatabaseStoreMessage receivedMessage,
RouterIdentity from,
Hash fromHash,
FloodfillNetworkDatabaseFacade facade) |
Modifier and Type | Field and Description |
---|---|
RouterIdentity |
LoadRouterInfoJob.KeyData.routerIdentity |
Constructor and Description |
---|
KeyData(RouterIdentity ri,
PrivateKey pk,
SigningPrivateKey spk) |
Modifier and Type | Method and Description |
---|---|
void |
TransportEventListener.messageReceived(I2NPMessage message,
RouterIdentity fromRouter,
Hash fromRouterHash)
Message received
|
void |
TransportManager.messageReceived(I2NPMessage message,
RouterIdentity fromRouter,
Hash fromRouterHash)
Message received
|
void |
TransportImpl.messageReceived(I2NPMessage inMsg,
RouterIdentity remoteIdent,
Hash remoteIdentHash,
long msToReceive,
int bytesReceived)
Message received from the I2NPMessageReader - send it to the listener
|
Modifier and Type | Method and Description |
---|---|
RouterIdentity |
NTCPConnection.getRemotePeer()
Valid for outbound; valid for inbound after handshake
|
Modifier and Type | Method and Description |
---|---|
void |
NTCPConnection.setRemotePeer(RouterIdentity ident) |
Constructor and Description |
---|
NTCPConnection(RouterContext ctx,
NTCPTransport transport,
RouterIdentity remotePeer,
RouterAddress remAddr)
Create an outbound unconnected NTCP connection
|
Modifier and Type | Method and Description |
---|---|
RouterIdentity |
InboundEstablishState.getConfirmedIdentity()
Who is Alice (null if forged/unknown)
Note that this isn't really confirmed - see below.
|
RouterIdentity |
OutboundEstablishState.getRemoteIdentity() |
Modifier and Type | Method and Description |
---|---|
UDPPacket[] |
PacketBuilder.buildSessionConfirmedPackets(OutboundEstablishState state,
RouterIdentity ourIdentity)
Build a new series of SessionConfirmed packets for the given peer,
encrypting it as necessary.
|
void |
UDPTransport.messageReceived(I2NPMessage inMsg,
RouterIdentity remoteIdent,
Hash remoteIdentHash,
long msToReceive,
int bytesReceived)
infinite loop
public RouterAddress getCurrentAddress() {
if (needsRebuild())
rebuildExternalAddress(false);
return super.getCurrentAddress();
}
|
Constructor and Description |
---|
OutboundEstablishState(RouterContext ctx,
RemoteHostId claimedAddress,
RemoteHostId remoteHostId,
RouterIdentity remotePeer,
boolean allowExtendedOptions,
boolean needIntroduction,
SessionKey introKey,
UDPAddress addr,
DHSessionKeyBuilder.Factory dh) |