|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.inria.myriads.snoozenode.tcpip.TCPDataReceiver
public abstract class TCPDataReceiver
TCP data receiver.
Constructor Summary | |
---|---|
TCPDataReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress,
int timeout)
Constructor. |
Method Summary | |
---|---|
void |
run()
Accepts new clients and reads data. |
void |
setHandler(DataListener danaHandler)
Sets the failure event handler. |
void |
terminate()
Terminates the receiver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TCPDataReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress, int timeout) throws IOException
networkAddress
- The network addresstimeout
- The timeout
IOException
- The I/O exceptionMethod Detail |
---|
public void setHandler(DataListener danaHandler)
danaHandler
- The data handlerpublic void run()
run
in interface Runnable
public void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |