java.lang.Object
net.i2p.i2ptunnel.socks.MultiSink<S>
- Type Parameters:
S- type of Sink objects managed by this MultiSink
Field Summary
Constructor Summary
Method Summary
All MethodsModifier and TypeMethodDescriptionvoidsend(Destination from, int fromPort, int toPort, byte[] data) Send to a single sink looked up by toPortvoidDon't use this - put sinks in the cache.voidstart()Starts the source.
Field Details
cache
Constructor Details
MultiSink
Method Details
setSink
start
send
Send to a single sink looked up by toPortMay throw RuntimeException from underlying sinks.
- Specified by:
sendin interfaceSink- Parameters:
from- sending destination, passed along to the sink, may be nullfromPort- source port, passed along to the sinktoPort- port selecting which sink receives the datadata- the datagram payload to deliver to the destination- Throws:
RuntimeException- if the sink selected by toPort fails to send the data