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.


Variable Index

 o client
Client side of the network.
 o stub
Stub for the strategy.
 o time1
Used to count transfer time.
 o time2
Used to count transfer time.
 o timeSelect
Which time is being read.

Constructor Index

 o RemoteListener(RemoteStub, MyClient)
Create a new remote listener.

Method Index

 o processCommand(String)
Process the command from the network.
 o run()
Keep listening for commands and follow them out.

Variables

 o client
 protected MyClient client
Client side of the network.

 o stub
 protected RemoteStub stub
Stub for the strategy.

 o time1
 protected long time1
Used to count transfer time.

 o time2
 protected long time2
Used to count transfer time.

 o timeSelect
 protected int timeSelect
Which time is being read.

Constructors

 o 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.

Methods

 o run
 public void run()
Keep listening for commands and follow them out.

Overrides:
run in class Thread
 o 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