Packages that use Transport
Package
Description
The I2P router application handles I2P network communication.
Peer profiles and capacity calculation, peer test jobs, peer selection for tunnel building, and the database and tunnel history used for peer selection.
Transport framework: the transport lifecycle and pool management, connection handling and bandwidth throttling for the transports (NTCP2 over TCP, SSU over UDP) that carry I2P messages between routers, plus NAT traversal via UPnP and GeoIP country lookups.
NTCP2, the TCP transport: framed, ratchet-encrypted and mutually authenticated connections between routers.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
Uses of Transport in net.i2p.router
Methods in net.i2p.router that return types with arguments of type TransportModifier and TypeMethodDescriptionCommSystemFacade.getTransports()Registered transports by style name.Methods in net.i2p.router with parameters of type TransportModifier and TypeMethodDescriptionprivate intTuner.peerScaledCap(Transport t, int min, int max, int divisor) Cap pool size by active transport connections: one extra thread above the minimum perdivisorconnections.voidCommSystemFacade.registerTransport(Transport t) Register a transport for use by the comm system.voidCommSystemFacade.unregisterTransport(Transport t) Unregister a transport from the comm system.Uses of Transport in net.i2p.router.peermanager
Method parameters in net.i2p.router.peermanager with type arguments of type TransportModifier and TypeMethodDescriptionprivate voidProfileOrganizer.feedBaseline(Map<String, ProtocolRttBaseline> baselines, PeerProfile profile, Collection<Transport> transports) Add this peer's best measured latency to its winning transport's baseline.private intProfileOrganizer.sampleFirstHopRtt(PeerProfile profile, Collection<Transport> transports, long now) Record the best RTT any transport reports for this peer, if any.Uses of Transport in net.i2p.router.transport
Classes in net.i2p.router.transport that implement TransportModifier and TypeClassDescriptionclassDefines a way to send a message to another peer and start listening for messages.Fields in net.i2p.router.transport declared as TransportModifier and TypeFieldDescriptionprivate TransportTransportBid._transportThe transport making this bid.Fields in net.i2p.router.transport with type parameters of type TransportModifier and TypeFieldDescriptionTransportManager._pluggableTransportsLocking: this.TransportManager._transportsConverted from List to prevent concurrent modification exceptions.Methods in net.i2p.router.transport that return TransportModifier and TypeMethodDescriptionTransportBid.getTransport()Specifies the transport that offered this bid.(package private) TransportTransportManager.getTransport(String style) The registered transport for the given style.Methods in net.i2p.router.transport that return types with arguments of type TransportModifier and TypeMethodDescriptionCommSystemFacadeImpl.getTransports()Transports in use.TransportManager.getTransports()The registered transports by style, for the console pages that enumerate them.Methods in net.i2p.router.transport with parameters of type TransportModifier and TypeMethodDescriptionprivate voidTransportManager.addTransport(Transport transport) Adds a started transport to the lists.private voidTransportManager.initializeAddress(Transport t) Notify transport of ALL routable interface addresses, including IPv6.(package private) voidTransportManager.registerAndStart(Transport t) Register and start a pluggable transport.voidCommSystemFacadeImpl.registerTransport(Transport t) Pluggable transports.private voidTransportManager.removeTransport(Transport transport) Removes a stopped transport from the lists.voidTransportBid.setTransport(Transport transport) The transport that offered this bid.(package private) voidTransportManager.stopAndUnregister(Transport t) Stop and unregister a pluggable transport.voidCommSystemFacadeImpl.unregisterTransport(Transport t) Pluggable transports.Method parameters in net.i2p.router.transport with type arguments of type TransportModifier and TypeMethodDescriptionprivate voidTransportManager.initializeAddress(Collection<Transport> ts) Notify transports of ALL routable interface addresses, including IPv6.Uses of Transport in net.i2p.router.transport.ntcp
Classes in net.i2p.router.transport.ntcp that implement TransportModifier and TypeClassDescriptionclassNon-blocking TCP (NTCP) transport implementation for I2P.Methods in net.i2p.router.transport.ntcp that return TransportModifier and TypeMethodDescriptionNTCPTransport.SharedBid.getTransport()The transport this bid is for.Uses of Transport in net.i2p.router.transport.udp
Classes in net.i2p.router.transport.udp that implement TransportModifier and TypeClassDescriptionclassSSU/SSU2 transport implementation with UDP endpoint management and packet dispatch.Methods in net.i2p.router.transport.udp that return TransportUses of Transport in net.i2p.router.tunnel.pool
Methods in net.i2p.router.tunnel.pool with parameters of type TransportModifier and TypeMethodDescription(package private) static voidTunnelPeerSelector.noteFirstHopRtt(RouterContext ctx, Hash peer, Transport transport) Extract the transport's measured direct-link RTT and record it on the peer.Uses of Transport in net.i2p.router.web.helpers
Methods in net.i2p.router.web.helpers with parameters of type TransportModifier and TypeMethodDescriptionprivate voidPeerHelper.getTransportBandwidth(Transport transport, int[] peerCounts, int[] bandwidths) Sums peer counts and bandwidth for one transport.