Packages that use PeerTestState.Role
Package
Description
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Uses of PeerTestState.Role in net.i2p.router.transport.udp
Subclasses with type arguments of type PeerTestState.Role in net.i2p.router.transport.udpFields in net.i2p.router.transport.udp declared as PeerTestState.RoleModifier and TypeFieldDescriptionprivate final PeerTestState.RolePeerTestState._ourRoleOur role in the test.Methods in net.i2p.router.transport.udp that return PeerTestState.RoleModifier and TypeMethodDescriptionPeerTestState.getOurRole()Return our role in the peer test.static PeerTestState.RoleReturns the enum constant of this class with the specified name.static PeerTestState.Role[]PeerTestState.Role.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.i2p.router.transport.udp with parameters of type PeerTestState.RoleModifier and TypeMethodDescriptionstatic 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) PeerStateUDPTransport.pickTestPeer(PeerTestState.Role peerRole, int version, boolean isIPv6, RemoteHostId dontInclude) Pick a Bob (if we are Alice) or a Charlie (if we are Bob).Constructors in net.i2p.router.transport.udp with parameters of type PeerTestState.RoleModifierConstructorDescriptionPeerTestState(PeerTestState.Role role, PeerState bob, boolean isIPv6, long nonce, long now) Create a new peer test state for the given role.