feud.clientserver
Class SimpleServer.ServerBroadcast

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

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

The broadcast thread. The broadcast goes to all clients in the local subnet via UDP. If the port is not available, this thread will terminate with a RuntimeException but the server will continue to run without it. Currently, the server will send its data into the network every three seconds.


Field Summary
private  int port
           
private  int tcpPort
           
 
Constructor Summary
SimpleServer.ServerBroadcast(int tcpPort, 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

tcpPort

private int tcpPort
Constructor Detail

SimpleServer.ServerBroadcast

public SimpleServer.ServerBroadcast(int tcpPort,
                                    int port)
Method Detail

run

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