feud.clientserver
Class SimpleServer.ClientRegisterService

java.lang.Object
  extended byfeud.clientserver.SimpleServer.ClientRegisterService
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SimpleServer

private class SimpleServer.ClientRegisterService
extends java.lang.Object
implements java.lang.Runnable

This is the server's listening thread. It waits for client connections on the specified tcp port and spawns a new thread for each client that handles this client's requests and responses. If this thread dies (or doesn't start up due to the port not being available), the server in not running.


Field Summary
private  int port
           
 
Constructor Summary
SimpleServer.ClientRegisterService(int port)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

private int port
Constructor Detail

SimpleServer.ClientRegisterService

public SimpleServer.ClientRegisterService(int port)
Method Detail

run

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