public class DataReceiver
extends java.lang.Object
implements java.lang.Runnable
DataReceiverConnection object is used to
handle the incoming data.| Constructor and Description |
|---|
DataReceiver(EncryptionType encryptionType,
byte[] encrpytionKey,
int port,
DataReceiverAdapter adapter)
Creates a new
DataReceiver instance using the given information. |
DataReceiver(NetworkEnvironmentSettings settings,
DataReceiverAdapter adapter)
Creates a new
DataReceiver instance using the given NetworkEnvironmentSettings. |
public DataReceiver(NetworkEnvironmentSettings settings, DataReceiverAdapter adapter) throws java.io.IOException
DataReceiver instance using the given NetworkEnvironmentSettings.settings - the NetworkEnvironmentSettings to get all encessary information fromadapter - the adapter to be notified about eventsjava.io.IOExceptionpublic DataReceiver(EncryptionType encryptionType, byte[] encrpytionKey, int port, DataReceiverAdapter adapter) throws java.io.IOException
DataReceiver instance using the given information.encryptionType - the EncryptionType to be usedencrpytionKey - the encryption key to be usedport - the port to wait for incoming connections onadapter - the adapter to be notified about eventsjava.io.IOException