Class BattleS.UseSocket

java.lang.Object
  extended by java.lang.Thread
      extended by BattleS.UseSocket
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
BattleS

 class BattleS.UseSocket
extends java.lang.Thread

The construction for the Client - UseSocket class that uses a thread to lsiten for input connections Also taken from the AppletCliSer.java exmaple and modified for the battleship game


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  java.lang.String msg
           
(package private)  java.lang.String serverName
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BattleS.UseSocket()
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

serverName

java.lang.String serverName

msg

java.lang.String msg
Constructor Detail

BattleS.UseSocket

public BattleS.UseSocket()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread