Package com.sparshui.client
Class ClientServerConnection
java.lang.Object
java.lang.Thread
com.sparshui.client.ClientServerConnection
- All Implemented Interfaces:
Runnable
Represents the connection to the GestureServer.
- Author:
- Jay Roltgen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionClientServerConnection
(String address, SparshClient client) Instantiate a Server Connection object. -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
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