net.i2p.i2ptunnel.streamr
Class Subscriber

java.lang.Object
  extended by 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 Summary
Subscriber(MultiSource multi)
           
 
Method Summary
 void send(Destination dest, byte[] data)
          Doesn't really "send" anywhere, just subscribes or unsubscribes the destination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscriber

public Subscriber(MultiSource multi)
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