Package net.i2p.i2ptunnel.socks
Class MultiSink<S extends Sink>
- java.lang.Object
-
- net.i2p.i2ptunnel.socks.MultiSink<S>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(Destination from, int fromPort, int toPort, byte[] data)Send to a single sink looked up by toPort May throw RuntimeException from underlying sinksvoidsetSink(Sink sink)Don't use this - put sinks in the cachevoidstart()
-
-
-
Method Detail
-
setSink
public void setSink(Sink sink)
Don't use this - put sinks in the cache
-
send
public void send(Destination from, int fromPort, int toPort, byte[] data)
Send to a single sink looked up by toPort May throw RuntimeException from underlying sinks- Specified by:
sendin interfaceSink- Parameters:
from- passed alongfromPort- passed alongtoPort- passed along- Throws:
RuntimeException- Since:
- 0.9.53 added fromPort and toPort parameters
-
-