Packages that use TunnelCreatorConfig
Package
Description
Tunnel messages and the tunnel layer: the
TunnelManagerFacade, tunnel build request and reply processing, and the inbound and outbound tunnel structures. Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Uses of TunnelCreatorConfig in net.i2p.router.tunnel
Fields in net.i2p.router.tunnel declared as TunnelCreatorConfigModifier and TypeFieldDescriptionprivate final TunnelCreatorConfigBatchedRouterPreprocessor._configThe tunnel the batch is built for.private final TunnelCreatorConfigInboundEndpointProcessor._configThe tunnel's configuration.private final TunnelCreatorConfigOutboundGatewayProcessor._configThe tunnel this processor runs.private final TunnelCreatorConfigOutboundReceiver._configThe tunnel the messages go through.private final TunnelCreatorConfigOutboundSender._configThe tunnel this sender sends on.private final TunnelCreatorConfigTunnelGatewayZeroHop._configThe tunnel this hop is the gateway of.Methods in net.i2p.router.tunnel that return TunnelCreatorConfigModifier and TypeMethodDescriptionInboundEndpointProcessor.getConfig()The tunnel creator config for this endpoint.Methods in net.i2p.router.tunnel with parameters of type TunnelCreatorConfigModifier and TypeMethodDescriptionprivate voidTunnelParticipant.blameTunnelPeers(TunnelCreatorConfig cfg) Distribute blame among tunnel peers when message processing fails.private TunnelGateway.QueuePreprocessorTunnelDispatcher.createPreprocessor(TunnelCreatorConfig cfg) Create a preprocessor for an outbound tunnel gateway.private voidInboundEndpointProcessor.decrypt(RouterContext ctx, TunnelCreatorConfig cfg, byte[] orig, int offset, int length) Iteratively undo the crypto that the various layers in the tunnel added.private voidOutboundGatewayProcessor.decrypt(TunnelCreatorConfig cfg, byte[] orig, int offset, int length) Iteratively undo the crypto that the various layers in the tunnel added.private static StringBatchedRouterPreprocessor.getName(TunnelCreatorConfig cfg) Names a tunnel for the log.booleanTunnelDispatcher.joinInbound(TunnelCreatorConfig cfg) We are the inbound endpoint - we created this tunnel.booleanTunnelDispatcher.joinOutbound(TunnelCreatorConfig cfg) We are the outbound gateway - we created this tunnel.voidTunnelDispatcher.remove(TunnelCreatorConfig cfg) Remove a tunnel we created.Constructors in net.i2p.router.tunnel with parameters of type TunnelCreatorConfigModifierConstructorDescriptionCreate a preprocessor for outbound gateway tunnels.InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg, IVValidator validator) Binds the router context, tunnel creator config, and IV validator.Binds the router context and tunnel creator config.OutboundReceiver(RouterContext ctx, TunnelCreatorConfig cfg) Binds the context and tunnel config, caching the first hop router info.OutboundSender(I2PAppContext ctx, TunnelCreatorConfig config) Binds the given context and config, creating the outbound gateway processor.TunnelGatewayZeroHop(RouterContext context, TunnelCreatorConfig config) Create a zero-hop gateway for the specified tunnel.Uses of TunnelCreatorConfig in net.i2p.router.tunnel.pool
Subclasses of TunnelCreatorConfig in net.i2p.router.tunnel.poolMethods in net.i2p.router.tunnel.pool with parameters of type TunnelCreatorConfigModifier and TypeMethodDescriptionprivate static voidBuildExecutor.appendRequestMsgId(StringBuilder buf, TunnelCreatorConfig cfg) Append the build request's I2NP message ID, when known.private StringBuildExecutor.classifyHopAt(TunnelCreatorConfig cfg, int hop) Classify one hop of an expired build, from that hop's current transport state.static voidBuildMessageGenerator.createRecord(int recordNum, int hop, TunnelBuildMessage msg, TunnelCreatorConfig cfg, Hash replyRouter, long replyTunnel, RouterContext ctx, PublicKey peerKey, Properties props) Place the asymmetrically encrypted record in the specified record slot, containing the hop's configuration (as well as the reply info, if it is an outbound endpoint).private static BuildRequestRecordBuildMessageGenerator.createUnencryptedRecord(I2PAppContext ctx, TunnelCreatorConfig cfg, int hop, Hash replyRouter, long replyTunnel, boolean isEC, boolean isShort, Properties props) Create an unencrypted build request record for a tunnel hop.BuildReplyHandler.decrypt(TunnelBuildReplyMessage reply, TunnelCreatorConfig cfg, List<Integer> recordOrder) Decrypt the tunnel build reply records.private BuildReplyHandler.ResultBuildReplyHandler.decryptRecord(TunnelBuildReplyMessage reply, TunnelCreatorConfig cfg, int recordNum, int hop) Decrypt the record (removing the layers of reply encryption) and read out the statusprivate static intBuildExecutor.gatewayHopIndex(TunnelCreatorConfig cfg, int length) Config index at which the local router sits as this tunnel's gateway.static booleanBuildMessageGenerator.isBlank(TunnelCreatorConfig cfg, int hop) Check if a hop should have a blank (random) record.static voidBuildMessageGenerator.layeredEncrypt(I2PAppContext ctx, TunnelBuildMessage msg, TunnelCreatorConfig cfg, List<Integer> order) Encrypt the records so their hop ident is visible at the appropriate times.private voidBuildExecutor.logExpiredBuildWarn(TunnelCreatorConfig cfg) Build timeouts are the largest unexplained loss on this router, roughly twice the rejection rate.private voidBuildExecutor.logExpiredPeers(TunnelCreatorConfig cfg) Emit the detailed per-hop expiry report at DEBUG level.private voidBuildExecutor.noteExpiredHopAttribution(TunnelCreatorConfig cfg) Record which hop position failed to answer, for every expired build.