net.i2p.i2ptunnel.udp

## Interface Sink

- 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 Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `send(Destination src, int fromPort, int toPort, byte[] data)`

- - ### Method Detail

    - #### send

          void send(Destination src,
                    int fromPort,
                    int toPort,
                    byte[] data)

      Parameters:
        `fromPort` - I2CP source port, 0-65535
        `toPort` - I2CP destination port, 0-65535
        `src` - some implementations may ignore, may be null in some implementations
      Throws:
        `RuntimeException` - in some implementations