Skip to main content

Module i2p

Module i2p 

Source
Expand description

I2P as a transport kind, over a router the user already runs (i2pd, Java I2P, i2pd-android) through its SAMv3 bridge.

An instance keeps two transient STREAM sessions, one per lane, so a host a stranger names only ever learns the Shared destination. .i2p hosts are dialed inside I2P, clearnet hosts through the user’s outproxy list, and an alias twin carries TLS on 443 untouched. Nothing here ever accepts a connection: sessions are client-only and their LeaseSets unpublished.

Modules§

keeper
The session keeper: one task per instance that finds the router, opens both lane sessions, watches them, and starts over with backoff whenever they go. Never sends PING: i2pd answers it and then destroys the session.
names
Human-readable .i2p names, resolved through the router’s own address book and remembered for an hour. Per instance, so a new router connection starts with nothing cached.
outproxy
Clearnet hosts over I2P: an I2P stream to an outproxy, then an HTTP CONNECT through it. The list is the user’s, tried in order; health, cooling and refused ports are remembered per instance only.
probe
I2P’s side of twin checks: the shared ones in transport::twins, plus a probe through an instance that need not be the one installed.
sam
A minimal SAMv3 client for a router the user already runs. It speaks five commands and nothing else: transient STREAM sessions that never publish a LeaseSet or build a zero-hop tunnel, outbound stream connects, name lookups and a liveness probe. No line it sends can make the router accept a connection or carry someone else’s traffic.

Structs§

I2pFactory
I2pTransport
SessionProbe
Checks an instance’s two sessions with the router without handing out their names.

Functions§

active
The installed I2P instance, when it belongs to the account on screen.