org.inria.myriads.snoozenode.tcpip
public abstract class TCPDataReceiver extends Object implements Runnable
Constructor and Description |
---|
TCPDataReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress,
int timeout)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Accepts new clients and reads data.
|
void |
setHandler(DataListener danaHandler)
Sets the failure event handler.
|
void |
terminate()
Terminates the receiver.
|
public TCPDataReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress, int timeout) throws IOException
networkAddress
- The network addresstimeout
- The timeoutIOException
- The I/O exceptionpublic void setHandler(DataListener danaHandler)
danaHandler
- The data handlerpublic void terminate()
Copyright © 2013. All Rights Reserved.