Class ScanIncomingConnections

java.lang.Object
  extended by ScanIncomingConnections
All Implemented Interfaces:
java.lang.Runnable

public class ScanIncomingConnections
extends java.lang.Object
implements java.lang.Runnable

Scans for incoming connections to the server When is receives a connection is creates a Client object and passes it to the MainRoom.


Field Summary
static int PORT
           
 
Constructor Summary
ScanIncomingConnections(MainRoom server)
          Constructs a scanning object that waits for incoming connections
 
Method Summary
 void run()
          Overrided run method that goes when this thread is started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static final int PORT
See Also:
Constant Field Values
Constructor Detail

ScanIncomingConnections

public ScanIncomingConnections(MainRoom server)
Constructs a scanning object that waits for incoming connections

Parameters:
server - the server that it will send clients back to
Method Detail

run

public void run()
Overrided run method that goes when this thread is started

Specified by:
run in interface java.lang.Runnable