Packages that use UDPTransport
Package
Description
The I2P router application handles I2P network communication.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
Uses of UDPTransport in net.i2p.router
Methods in net.i2p.router that return UDPTransportModifier and TypeMethodDescriptionprivate UDPTransportTuner.getUDPTransport()UDP transport, or null if not available.Uses of UDPTransport in net.i2p.router.transport.udp
Fields in net.i2p.router.transport.udp declared as UDPTransportModifier and TypeFieldDescriptionprivate final UDPTransportEstablishmentManager._transportThe SSU transport we serve.private final UDPTransportInboundEstablishState2._transportThe SSU transport we serve.private final UDPTransportInboundMessageFragments._transportThe transport the datagrams arrived on.private final UDPTransportIntroductionManager._transportThe SSU transport we serve.private final UDPTransportMessageReceiver._transportThe transport the messages belong to.private final UDPTransportOutboundEstablishState2._transportThe SSU transport we serve.private final UDPTransportOutboundMessageFragments._transportThe transport owning this job.private final UDPTransportPacketBuilder2._transportThe transport the packets go out on.private final UDPTransportPacketHandler._transportThe transport the packets belong to.protected final UDPTransportPeerState._transportThe UDP transport.private final UDPTransportPeerStateDestroyed._transportThe SSU transport we serve.private final UDPTransportPeerTestEvent._transportUDP transport.private final UDPTransportPeerTestManager._transportThe SSU transport we test through.private final UDPTransportUDPEndpoint._transportThe transport that owns this endpoint.private final UDPTransportUDPReceiver._transportThe transport that owns this receiver.Methods in net.i2p.router.transport.udp that return UDPTransportModifier and TypeMethodDescription(package private) UDPTransportPeerState.getTransport()Convenience for OutboundMessageState so it can fail itself.Constructors in net.i2p.router.transport.udp with parameters of type UDPTransportModifierConstructorDescriptionEstablishmentManager(RouterContext ctx, UDPTransport transport) Creates the establishment manager.InboundEstablishState2(RouterContext ctx, UDPTransport transport, UDPPacket packet) Start a new handshake with the given incoming packet, which must be a Session Request or Token Request.InboundMessageFragments(RouterContext ctx, OutboundMessageFragments outbound, UDPTransport transport) Creates the message receiver and registers the fragment reassembly stats.IntroductionManager(RouterContext ctx, UDPTransport transport) Creates the introduction manager.MessageReceiver(RouterContext ctx, UDPTransport transport) Creates the completed-message queue, sized from available memory, and registers its rate stats.OutboundEstablishState2(RouterContext ctx, UDPTransport transport, RemoteHostId claimedAddress, RemoteHostId remoteHostId, RouterIdentity remotePeer, boolean needIntroduction, SessionKey introKey, RouterAddress ra, UDPAddress addr, int version) Prepare to start a new handshake with the given peer.OutboundMessageFragments(RouterContext ctx, UDPTransport transport) Registers the transport's send-rate and memory statistics.PacketBuilder2(RouterContext ctx, UDPTransport transport) No state, all methods are thread-safe.(package private)PacketHandler(RouterContext ctx, UDPTransport transport, EstablishmentManager establisher, InboundMessageFragments inbound, PeerTestManager testManager, IntroductionManager introManager) Create a new packet handler.protectedPeerState(RouterContext ctx, UDPTransport transport, InetSocketAddress addr, Hash remotePeer, boolean isInbound, int rtt) For SSU2.PeerState2(RouterContext ctx, UDPTransport transport, InetSocketAddress remoteAddress, Hash remotePeer, boolean isInbound, int rtt, CipherState sendCha, CipherState rcvCha, long sendID, long rcvID, byte[] sendHdrKey1, byte[] sendHdrKey2, byte[] rcvHdrKey2) A session with a remote peer over SSU2: the connection ids, the four cipher states and the header encryption keys are all fixed here, so the transport can build one without a separate handshake step.PeerStateDestroyed(RouterContext ctx, UDPTransport transport, PeerState2 peer) This must be called after the first termination or termination ack was sent fromPeerState2, so the next packet number is correct.PeerStateDestroyed(RouterContext ctx, UDPTransport transport, RemoteHostId id, long sendID, long rcvID, CipherState sendCha, CipherState rcvCha, byte[] sendKey1, byte[] sendKey2, byte[] rcvKey2, int reason) Direct from IES2, there was never a PS2.(package private)PeerTestEvent(RouterContext ctx, UDPTransport udp, PeerTestManager ptmgr) Peer test event.PeerTestManager(RouterContext context, UDPTransport transport) Have seen peer tests (as Alice) get stuck (_currentTest != null) so I've thrown some synchronizization on the methods; don't know the root cause or whether this fixes it.UDPEndpoint(RouterContext ctx, UDPTransport transport, int listenPort, InetAddress bindAddress) Record the settings a laterUDPEndpoint.startup()binds the UDP socket with.UDPReceiver(RouterContext ctx, UDPTransport transport, DatagramSocket socket, String name, SocketListener lsnr) Constructor name parameter.Uses of UDPTransport in net.i2p.router.web.helpers
Methods in net.i2p.router.web.helpers with parameters of type UDPTransportModifier and TypeMethodDescriptionprivate voidPeerHelper.render(UDPTransport ut, Writer out, String urlBase, int sortFlags, boolean debugmode) Render the SSU/UDP transport peer listing.private voidPeerHelper.renderSSUFooter(StringBuilder buf, boolean debugmode, UDPTransport ut, PeerHelper.SSUTotals totals) Append the SSU peer table footer with the accumulated totals.private voidPeerHelper.renderSSUFragment(UDPTransport ut, Writer out, String id, int sortFlags, boolean debugmode) Render a named SSU element in fragment mode: the count heading, the tbody with data-key rows, or the totals tfoot.