Class ClientServerConnection

java.lang.Object
java.lang.Thread
com.sparshui.client.ClientServerConnection
All Implemented Interfaces:
Runnable

public class ClientServerConnection extends Thread
Represents the connection to the GestureServer.
Author:
Jay Roltgen
  • Constructor Details

    • ClientServerConnection

      public ClientServerConnection(String address, SparshClient client) throws UnknownHostException, IOException
      Instantiate a Server Connection object.
      Parameters:
      address - The ip address of the server to connect to.
      client - The client object that the gesture client is using to listen for messages from the server.
      Throws:
      UnknownHostException - If "address" is an unknwown host.
      IOException - If a communication error ocurrs.
  • Method Details

    • run

      public void run()
      Begin processing requests.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • close

      public void close()