Class I2PSinkAnywhere

java.lang.Object
net.i2p.i2ptunnel.udp.I2PSinkAnywhere
All Implemented Interfaces:
Sink

public class I2PSinkAnywhere extends Object implements Sink
Producer This sends to any destination specified in send()
Author:
zzz modded from I2PSink by welterde
  • Field Details

  • Constructor Details

    • I2PSinkAnywhere

      public I2PSinkAnywhere(I2PSession sess)
    • I2PSinkAnywhere

      public I2PSinkAnywhere(I2PSession sess, boolean raw)
  • Method Details

    • send

      public void send(Destination to, byte[] data)
      Parameters:
      to - - where it's going
      Throws:
      RuntimeException - if session is closed
    • send

      public void send(Destination to, int fromPort, int toPort, byte[] data)
      Specified by:
      send in interface Sink
      Parameters:
      to - - where it's going
      fromPort - I2CP port 0 - 65535
      toPort - I2CP port 0 - 65535
      Throws:
      RuntimeException - if session is closed
      Since:
      0.9.53