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, int fromPort, int toPort, 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
      fromPort - I2CP source port, 0-65535
      toPort - I2CP destination port, 0-65535
      data - must be a single byte, 0 to subscribe, 1 to unsubscribe
      Since:
      0.9.53 added fromPort and toPort parameters