Class 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
    • Constructor Detail

      • I2PSinkAnywhere

        public I2PSinkAnywhere​(I2PSession sess)
      • I2PSinkAnywhere

        public I2PSinkAnywhere​(I2PSession sess,
                               boolean raw)
    • Method Detail

      • send

        public void send​(Destination to,
                         byte[] data)
        Specified by:
        send in interface Sink
        Parameters:
        to - - where it's going
        Throws:
        RuntimeException - if session is closed