Package net.i2p.router.transport.ntcp
package net.i2p.router.transport.ntcp
The NTCP transport allows passing I2P messages on top of TCP. The N in NTCP stands for 'New', as the NTCP transport replaces an older TCP transport which had issues concerning congestion collapse.
-
ClassDescriptionInbound NTCP 2 only.Handle the establishmentThe main NTCP NIO thread.NTCP 2.NTCP2 Padding/Dummy/Delay configuration for data phase.NTCP2 Payload generation and parsingBase class for blocks to be transmitted.For all callbacks, recommend throwing exceptions only from the handshake.Coordinate the connection to a single peer.Previously, NTCP was using SimpleTimer with a delay of 0, which was a real abuse.The NIO TCP transportNTCP 2 only.Pool of running threads which will process any read bytes on any of the NTCPConnections, including the decryption of the data read, connection handshaking, parsing bytes into I2NP messages, etc.Pool of running threads which will transform the next I2NP message into something ready to be transferred over an NTCP connection, including the encryption of the data read.