Package net.i2p.i2ptunnel.streamr
Class MultiSource
java.lang.Object
net.i2p.i2ptunnel.streamr.MultiSource
Sends to many Sinks
- Author:
- welterde, zzz modded for I2PTunnel
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(MultiSource.MSink ms) void
void
send
(Destination ignored_from, int ignored_fromPort, int ignored_toPort, byte[] data) May throw RuntimeException from underlying sinksvoid
void
start()
void
stop()
-
Constructor Details
-
MultiSource
public MultiSource()
-
-
Method Details
-
setSink
-
start
public void start() -
stop
public void stop() -
send
May throw RuntimeException from underlying sinks- Specified by:
send
in interfaceSink
- Parameters:
ignored_from
- some implementations may ignore, may be null in some implementationsignored_fromPort
- I2CP source port, 0-65535ignored_toPort
- I2CP destination port, 0-65535- Throws:
RuntimeException
- Since:
- 0.9.53 added fromPort and toPort parameters
-
add
- Since:
- 0.9.53 changed to MSink parameter
-
remove
- Since:
- 0.9.53 changed to MSink parameter
-