Interface Sink

All Known Implementing Classes:
I2PSink, I2PSinkAnywhere, I2PTunnelUDPClientBase, I2PTunnelUDPServerBase, MultiSink, MultiSource, SOCKSUDPPort, SOCKSUDPTunnel, SOCKSUDPUnwrapper, SOCKSUDPWrapper, StreamrConsumer, StreamrProducer, Subscriber, UDPSink

public interface Sink
Author:
welterde
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    send(Destination src, int fromPort, int toPort, byte[] data)
     
  • Method Details

    • send

      void send(Destination src, int fromPort, int toPort, byte[] data)
      Parameters:
      src - some implementations may ignore, may be null in some implementations
      fromPort - I2CP source port, 0-65535
      toPort - I2CP destination port, 0-65535
      Throws:
      RuntimeException - in some implementations
      Since:
      0.9.53 added fromPort and toPort parameters, breaking change, sorry