utility_ns
Class ServerDiChatListener

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--utility_ns.ServerDiChatListener

public class ServerDiChatListener
extends java.lang.Thread

Classe che si occupa della gestione dell'accettazione di richieste dei Server di Chat.


Field Summary
private  MainClass mainclass
           
private  ServerDiChatReplier sdcr
           
private  java.net.ServerSocket serversocket
           
private  java.net.Socket socketserverdichat
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
ServerDiChatListener(MainClass mc, int portaserverdichat)
          Costruttore: crea la ServerSocket.
 
Method Summary
 void run()
          Thread che cicla infinitamente, fino a fallimento della socket, in attesa di una richiesta di un Server di Chat.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serversocket

private java.net.ServerSocket serversocket

socketserverdichat

private java.net.Socket socketserverdichat

sdcr

private ServerDiChatReplier sdcr

mainclass

private MainClass mainclass
Constructor Detail

ServerDiChatListener

public ServerDiChatListener(MainClass mc,
                            int portaserverdichat)
Costruttore: crea la ServerSocket.
Method Detail

run

public void run()
Thread che cicla infinitamente, fino a fallimento della socket, in attesa di una richiesta di un Server di Chat.
In coincidenza della richiesta fa partire il Thread Server di Chat Replier.
Overrides:
run in class java.lang.Thread