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 void
send(Destination from, int fromPort, int toPort, byte[] data)
Send to a single sink looked up by toPort May throw RuntimeException from underlying sinksvoid
setSink(Sink sink)
Don't use this - put sinks in the cachevoid
start()
-
-
-
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:
send
in interfaceSink
- Parameters:
from
- passed alongfromPort
- passed alongtoPort
- passed along- Throws:
RuntimeException
- Since:
- 0.9.53 added fromPort and toPort parameters
-
-