javaim
Class Server

java.lang.Object
  extended by javaim.Server
All Implemented Interfaces:
java.lang.Runnable

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

Classe che contiene l'implementazione del server


Constructor Summary
Server(int p, MainInterface m)
          Crea una nuova istanza del server
 
Method Summary
 void run()
          Implementazione del metodo run() dell'interfaccia Runnable()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server(int p,
              MainInterface m)
       throws java.io.IOException
Crea una nuova istanza del server

Parameters:
p - Porta su cui aprire il server
m - Implementazione di MainInterface da cui questo server dipende
Throws:
java.io.IOException - Se qualcosa non funziona nella creazione del server. viene lanciata un'eccezione.
Method Detail

run

public void run()
Implementazione del metodo run() dell'interfaccia Runnable()

Specified by:
run in interface java.lang.Runnable