net.i2p.i2ptunnel.streamr
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
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 |
Subscriber
public Subscriber(MultiSource multi)
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 unsubscribedata
- must be a single byte, 0 to subscribe, 1 to unsubscribe