- All Known Implementing Classes:
I2PSink, I2PSinkAnywhere, I2PTunnelUDPClientBase, I2PTunnelUDPServerBase, MultiSink, MultiSource, SOCKSUDPPort, SOCKSUDPTunnel, SOCKSUDPUnwrapper, SOCKSUDPWrapper, StreamrConsumer, StreamrProducer, Subscriber, UDPSink
public interface Sink
Sink interface for streaming data destinations.
Method Summary
All MethodsModifier and TypeMethodDescriptionvoidsend(Destination src, int fromPort, int toPort, byte[] data) Sends a datagram to the given destination.
Method Details
send
Sends a datagram to the given destination.- Parameters:
src- some implementations may ignore, may be null in some implementationsfromPort- I2CP source port, 0-65535toPort- I2CP destination port, 0-65535data- the datagram payload to deliver to the destination- Throws:
RuntimeException- in some implementations