othellogame
Class ServidorComm

java.lang.Object
  extended byothellogame.ServidorComm
All Implemented Interfaces:
java.lang.Runnable

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

Maneja las comunicaciones para el servidor. Mantiene una lista de todas las conexiones activas. Provee una interfaz que hace la comunicacion transparente.

Author:
Fabio Gonzalez

Field Summary
static int PORT
           
 
Constructor Summary
ServidorComm()
           
 
Method Summary
 void addConnListener(ConnListener listener)
           
 void arrancarServidor()
           
static void main(java.lang.String[] args)
           
 Jugada obtenerJugadaSiguiente(java.lang.String nomJugador, TableroModel tablero)
           
 void removeConnListener(ConnListener listener)
           
 void run()
           
 
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

ServidorComm

public ServidorComm()
Method Detail

arrancarServidor

public void arrancarServidor()
                      throws java.io.IOException
Throws:
java.io.IOException

run

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

addConnListener

public void addConnListener(ConnListener listener)

removeConnListener

public void removeConnListener(ConnListener listener)

obtenerJugadaSiguiente

public Jugada obtenerJugadaSiguiente(java.lang.String nomJugador,
                                     TableroModel tablero)

main

public static void main(java.lang.String[] args)