Package net.i2p.sam

Interface SAMDatagramReceiver

    • Method Detail

      • receiveDatagramBytes

        void receiveDatagramBytes​(Destination sender,
                                  byte[] data,
                                  int proto,
                                  int fromPort,
                                  int toPort)
                           throws IOException
        Send a byte array to a SAM client.
        Parameters:
        sender - Destination
        data - Byte array to be received
        proto - I2CP protocol
        fromPort - I2CP from port
        toPort - I2CP to port
        Throws:
        IOException
      • stopDatagramReceiving

        void stopDatagramReceiving()
        Stop receiving data.