Package de.das.encrypter.comm
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 TypeMethodDescriptionvoidsetData(byte[] data) Passes the received data to the instance of the class that implements the DataReceiver interface and has registered with the UDP receiver.voidPasses 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
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.
-