Packages that use OutboundEstablishState2
Package
Description
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Uses of OutboundEstablishState2 in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp with parameters of type OutboundEstablishState2Modifier and TypeMethodDescriptionprivate UDPPacketPacketBuilder2.buildSessionConfirmedPacket(OutboundEstablishState2 state, SSU2Payload.RIBlock block) Build a single new SessionConfirmed packet for the given peer, unfragmented.PacketBuilder2.buildSessionConfirmedPackets(OutboundEstablishState2 state, RouterInfo ourInfo) Build a new series of SessionConfirmed packets for the given peer, encrypting it as necessary.private UDPPacket[]PacketBuilder2.buildSessionConfirmedPackets(OutboundEstablishState2 state, SSU2Payload.RIBlock block) Build all the fragmented SessionConfirmed packets.PacketBuilder2.buildSessionRequestPacket(OutboundEstablishState2 state) Build a new SessionRequest packet for the given peer, encrypting it as necessary.PacketBuilder2.buildTokenRequestPacket(OutboundEstablishState2 state) Build a new SessionRequest packet for the given peer, encrypting it as necessary.private booleanEstablishmentManager.isPeerBanned(OutboundEstablishState2 state) Is the peer on the blocklist or banlist?(package private) voidEstablishmentManager.receiveRetry(OutboundEstablishState2 state, UDPPacket packet) Got a Retry (in response to our outbound SessionRequest or TokenRequest)(package private) voidEstablishmentManager.receiveSessionCreated(OutboundEstablishState2 state, UDPPacket packet) Got a SessionCreated (in response to our outbound SessionRequest)private booleanPacketHandler.receiveSSU2Packet(UDPPacket packet, OutboundEstablishState2 state) Decrypt the header and hand off to the state for processing.private voidEstablishmentManager.updateHolePunchState(OutboundEstablishState state, OutboundEstablishState2 state2, byte[] data, int port, long now, long token) Update the state with the validated Charlie address, and swap the RemoteHostId the state is indexed under if this was a HolePunch before the RelayResponse.private byte[]EstablishmentManager.verifyIntroducerSignature(OutboundEstablishState state, OutboundEstablishState2 state2, EstablishmentManager.HPCallback cb) Validate the introducer signature on the HolePunch, by trying each introducer in a state that may have signed it.