| Package | Description |
|---|---|
| net.i2p.router.transport.udp | The UDP transport (also known as 'SSU' or Secure Semi-reliable UDP transport)
for I2P, allowing I2P messages to be passed over UDP connections. |
| Modifier and Type | Method and Description |
|---|---|
PeerTestState.Role | PeerTestState.getOurRole()Return our role in the peer test. |
static PeerTestState.Role | PeerTestState.Role.valueOf(String name)Returns the enum constant of this type with the specified name. |
static PeerTestState.Role[] | PeerTestState.Role.values()Returns an array containing the constants of this enum type, in
the order they are declared. |
| Modifier and Type | Method and Description |
|---|---|
static byte[] | SSU2Util.createPeerTestData(I2PAppContext ctx,
Hash h,
Hash h2,
PeerTestState.Role role,
long nonce,
byte[] ip,
int port,
SigningPrivateKey spk)Make the data for the peer test block |
(package private) PeerState | UDPTransport.pickTestPeer(PeerTestState.Role peerRole,
int version,
boolean isIPv6,
RemoteHostId dontInclude)Pick a Bob (if we are Alice) or a Charlie (if we are Bob). |
| Constructor and Description |
|---|
PeerTestState(PeerTestState.Role role,
PeerState bob,
boolean isIPv6,
long nonce,
long now)Create a new peer test state for the given role. |