Class Subscriber

java.lang.Object
net.i2p.i2ptunnel.streamr.Subscriber
All Implemented Interfaces:
Sink

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

  • Method Details

    • 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