|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.virginia.cs.mng.hypercast.ServerReceiver
Reads the response from the server and inserts into the message queue, then dies.
| Field Summary | |
private boolean |
died
True if myThread has returned from run(). |
private boolean |
dying
True if the function die() has been called. |
private byte[] |
messageBody
The message to be sent. |
private java.lang.Thread |
myThread
The receiving thread. |
private MessageBuffer |
Output
The buffer for received messages. |
private UDP_HTTP_ServerAdapter |
Parent
The adapter. |
private java.lang.String |
serverQueryPrefix
The URL of the server that the message should be sent to. |
private boolean |
waiting
True while myThread is waiting to receive. |
private java.lang.Object |
waitingGuard
Guard used to protect waiting when it is changed. |
| Constructor Summary | |
(package private) |
ServerReceiver(UDP_HTTP_ServerAdapter p,
MessageBuffer o,
java.lang.String sqp,
byte[] m)
|
| Method Summary | |
(package private) void |
die()
Causes myThread to halt eventually. |
(package private) boolean |
isDead()
Returns true if myThread will never call an I_AdapterCallBack method again. |
void |
run()
Reads the response from the server and inserts into the message queue, then dies. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private UDP_HTTP_ServerAdapter Parent
private MessageBuffer Output
private byte[] messageBody
private java.lang.String serverQueryPrefix
private java.lang.Thread myThread
private boolean dying
private boolean died
myThread has returned from run().private boolean waiting
myThread is waiting to receive.private java.lang.Object waitingGuard
waiting when it is changed.| Constructor Detail |
ServerReceiver(UDP_HTTP_ServerAdapter p,
MessageBuffer o,
java.lang.String sqp,
byte[] m)
| Method Detail |
public void run()
void die()
myThread to halt eventually.boolean isDead()
myThread will never call an I_AdapterCallBack method again.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||