Class Subscriber

  • All Implemented Interfaces:
    Sink

    public class Subscriber
    extends Object
    implements Sink
    server-mode
    Author:
    welterde, zzz modded from Producer for I2PTunnel
    • Constructor Detail

    • Method Detail

      • send

        public void send​(Destination dest,
                         byte[] data)
        Doesn't really "send" anywhere, just subscribes or unsubscribes the destination
        Specified by:
        send in interface Sink
        Parameters:
        dest - to subscribe or unsubscribe
        data - must be a single byte, 0 to subscribe, 1 to unsubscribe