pppizza
Class ThS_attesa_ordini

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--pppizza.ThS_attesa_ordini
All Implemented Interfaces:
java.lang.Runnable

public class ThS_attesa_ordini
extends java.lang.Thread

La classe Ths_attesa_ordinie permette di creare un thread che apre una serversocket che attende le ordinazioni. Una volta ricevuta una richiesta controlla se conosce l'Host che si è collegato. In questo caso passa la comunicazione ad un thread servitore che esegue il servizio, a questo punto si rimette in attesa degli ordini. Questo threads tenta l'apertura della soket per tre volte, se non ci riesce invia un messaggio all'utente e poi chiude il programma


Field Summary
protected  int count
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThS_attesa_ordini(grafica.Finestra_principale f, Pizzeria pz, Lista_Server ls, Fileordini_writer fo)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

protected int count
Constructor Detail

ThS_attesa_ordini

public ThS_attesa_ordini(grafica.Finestra_principale f,
                         Pizzeria pz,
                         Lista_Server ls,
                         Fileordini_writer fo)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread