|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--pppizza.ThS_attesa_ordini
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 |
protected int count
Constructor Detail |
public ThS_attesa_ordini(grafica.Finestra_principale f, Pizzeria pz, Lista_Server ls, Fileordini_writer fo)
Method Detail |
public void run()
run
in class java.lang.Thread
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |