Packages that use I2PTunnelRunner.RaceWin
Package
Description
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
Uses of I2PTunnelRunner.RaceWin in net.i2p.i2ptunnel
Methods in net.i2p.i2ptunnel that return I2PTunnelRunner.RaceWinModifier and TypeMethodDescription(package private) I2PTunnelRunner.RaceWinI2PTunnelRunner.raceEmptyPair(I2PSocket[] pair, byte[] request) Race two freshly connected sockets for an empty-response retry: write the buffered request to both, then the first socket to deliver a non-EOF byte wins.Method parameters in net.i2p.i2ptunnel with type arguments of type I2PTunnelRunner.RaceWinModifier and TypeMethodDescriptionprivate voidI2PTunnelRunner.startRaceLeg(String label, I2PSocket sock, PushbackInputStream in, AtomicReference<I2PTunnelRunner.RaceWin> winner, AtomicInteger failures, CountDownLatch settled) One race leg: read a single first byte, unread it into a pushback stream, and publish the win.