All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.remote.RemoteListener
java.lang.Object
|
+----java.lang.Thread
|
+----pinball.player.remote.RemoteListener
- public class RemoteListener
- extends Thread
Used to listen to commands from the server. Builds up the BufferInfo and
other data sent over the network.
-
client
- Client side of the network.
-
stub
- Stub for the strategy.
-
time1
- Used to count transfer time.
-
time2
- Used to count transfer time.
-
timeSelect
- Which time is being read.
-
RemoteListener(RemoteStub, MyClient)
- Create a new remote listener.
-
processCommand(String)
- Process the command from the network.
-
run()
- Keep listening for commands and follow them out.
client
protected MyClient client
- Client side of the network.
stub
protected RemoteStub stub
- Stub for the strategy.
time1
protected long time1
- Used to count transfer time.
time2
protected long time2
- Used to count transfer time.
timeSelect
protected int timeSelect
- Which time is being read.
RemoteListener
public RemoteListener(RemoteStub stub,
MyClient client)
- Create a new remote listener.
- Parameters:
- stub - stub of strategy.
- client - client site of network to read from.
run
public void run()
- Keep listening for commands and follow them out.
- Overrides:
- run in class Thread
processCommand
public boolean processCommand(String command)
- Process the command from the network. Must return true or false to
indicate if the command was processed.
- Parameters:
- command - the command from the network.
- Returns:
- the indication of weither the command was processed.
All Packages Class Hierarchy This Package Previous Next Index