|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eyebolt.iplib.ReceiveThread
A thread to receive data on a ipmanager connection
Field Summary | |
static int |
DONE
Description of the Field |
private boolean |
keepGoing
flag to stop the thread |
private java.util.Vector |
keys
Sockets (IPKeys) to receive on |
static int |
RUNNING
Description of the Field |
static int |
STARTED
Value returned when an operation runs successfully |
private int |
status
status of thread |
private java.util.Vector |
streams
Input stream for each socket |
private java.lang.Thread |
thread
actual thread running |
Constructor Summary | |
ReceiveThread()
Constructor for the ReceiveThread object |
Method Summary | |
(package private) void |
assign(IPKey key)
Assign this thread to receive on a particular key. |
(package private) void |
endThread()
stop recv |
void |
run()
Main processing method for the ReceiveThread object |
void |
setStatus(int newstat)
Sets the Status attribute of the ReceiveThread object |
(package private) void |
unassign(IPKey key)
Remove responsibility for a key from this thread. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int STARTED
public static final int RUNNING
public static final int DONE
private java.lang.Thread thread
private boolean keepGoing
private int status
private java.util.Vector keys
private java.util.Vector streams
Constructor Detail |
public ReceiveThread()
Method Detail |
public void setStatus(int newstat)
newstat
- The new Status valuevoid assign(IPKey key) throws java.io.IOException
key
- key on which to receivejava.io.IOException
- on errorvoid unassign(IPKey key)
key
- key to removevoid endThread()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |