Interface DataReceiver

All Known Implementing Classes:
CryptoServer, CryptoServiceUser, TransferControl

public interface DataReceiver
Interface for classes which want get byte arrays from a UDP receiver.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setData(byte[] data)
    Passes the received data to the instance of the class that implements the DataReceiver interface and has registered with the UDP receiver.
    void
    setData(String host, byte[] data)
    Passes the received data and the IP-address of the sender to the instance of the class that implements the DataReceiver interface and has registered with the UDP receiver.
  • Method Details

    • setData

      void setData(byte[] data)
      Passes the received data to the instance of the class that implements the DataReceiver interface and has registered with the UDP receiver.
      Parameters:
      data - the byte array received by a UDP receiver.
    • setData

      void setData(String host, byte[] data)
      Passes the received data and the IP-address of the sender to the instance of the class that implements the DataReceiver interface and has registered with the UDP receiver.
      Parameters:
      host - the IP address of the sender.
      data - the byte array received by a UDP receiver.