Class BattleS.SocketThrdServer

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

 class BattleS.SocketThrdServer
extends java.lang.Thread

The SocketThrdServer Class, this class is used to create the server object that runs in a thread and continually listens for input from clients taken from the AppletCliSer.java and modified to work with battle ship


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int port
           
(package private)  java.net.ServerSocket server
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BattleS.SocketThrdServer()
          The construction for the SocketThrdServer to setup the port and server variables
 
Method Summary
protected  void finalize()
           
 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

server

java.net.ServerSocket server

port

int port
Constructor Detail

BattleS.SocketThrdServer

public BattleS.SocketThrdServer()
The construction for the SocketThrdServer to setup the port and server variables

Method Detail

run

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

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object