Class ObstacleServer.ObstacleServerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byObstacleServer.ObstacleServerThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ObstacleServer

class ObstacleServer.ObstacleServerThread
extends java.lang.Thread

Author:
bachmaer Handles a single user via a TCP connection. Sends xy coordinates of obstacles in pairs. Indicates the end of obstacle data by sending negative numbers.

Field Summary
protected  java.net.Socket socket
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ObstacleServer.ObstacleServerThread(java.net.Socket socket)
          Constuctor
 
Method Summary
 void run()
          Sends add the obstacle data to an individual client via a TCP connection and then exits.
 
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

socket

protected java.net.Socket socket
Constructor Detail

ObstacleServer.ObstacleServerThread

public ObstacleServer.ObstacleServerThread(java.net.Socket socket)
Constuctor

Parameters:
socket - for communication with the client
Method Detail

run

public void run()
Sends add the obstacle data to an individual client via a TCP connection and then exits.