Class I2PSource

java.lang.Object
net.i2p.i2ptunnel.udp.I2PSource
All Implemented Interfaces:
Source

public class I2PSource extends Object implements Source
Refactored in 0.9.53 to support I2CP protocols and ports
Author:
welterde
  • Field Details

  • Constructor Details

    • I2PSource

      public I2PSource(I2PSession sess)
      Handles both REPLIABLE and RAW on any port
    • I2PSource

      public I2PSource(I2PSession sess, I2PSource.Protocol protocol)
      Listen on all I2CP ports. No support for arbitrary protocol numbers.
      Parameters:
      protocol - REPLIABLE, RAW, or BOTH
      Since:
      0.9.53
    • I2PSource

      public I2PSource(I2PSession sess, I2PSource.Protocol protocol, int port)
      Parameters:
      protocol - REPLIABLE, RAW, or BOTH
      port - I2CP port or I2PSession.PORT_ANY
      Since:
      0.9.53
  • Method Details

    • setSink

      public void setSink(Sink sink)
      Specified by:
      setSink in interface Source
    • start

      public void start()
      Specified by:
      start in interface Source