|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--transport.SocketReceiver
This class is used by the controller to receive Messages sent by ipaq clients. This class mearly passes the messages up to the Controller, it to deal with.
| Field Summary | |
private transport.SocketReceiverListener |
controller
The SocketReceiverListener object to pass messages to. |
private int |
port
The port to listen on. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SocketReceiver(transport.SocketReceiverListener controller,
int port)
This constructor initializes the Receiver, so that it is ready to begin listening for messages. |
|
| Method Summary | |
void |
run()
This method opens a Socket and listens to it forever. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int port
private transport.SocketReceiverListener controller
| Constructor Detail |
public SocketReceiver(transport.SocketReceiverListener controller,
int port)
controller - The listener to notify.port - The port this receiver is listening on.| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||