traffic.generation
Class RemoteMultipleClientUDPServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--traffic.generation.RemoteMultipleClientUDPServer
All Implemented Interfaces:
java.lang.Runnable

public class RemoteMultipleClientUDPServer
extends java.lang.Thread

RemoteMultipleClientUDPServer : Doir etre lance sur la machine qui va servir de serveur multimedia

Version:
0.1, 12/02/03
Author:
mladoue

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RemoteMultipleClientUDPServer(int srcPort, UDPServerManager rmcus)
           
 
Method Summary
 int getConnectionNb()
           
 java.lang.String getScenarioFileName(java.lang.String clientN, int port)
           
 void run()
          Methode run() de la classe Thread.
Attend la connexion des clients.
 void serverClosing()
          Methode pour arreter le serveur UDP: serverClosing()
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteMultipleClientUDPServer

public RemoteMultipleClientUDPServer(int srcPort,
                                     UDPServerManager rmcus)
Method Detail

run

public void run()
Methode run() de la classe Thread.
Attend la connexion des clients. A chaque arrivée d'un nouveau client, elle lui dedie un DatagramSocket (i.e un port de la machine) auquel il pourra se "connecter".

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getScenarioFileName

public java.lang.String getScenarioFileName(java.lang.String clientN,
                                            int port)
                                     throws java.io.IOException,
                                            java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException

serverClosing

public void serverClosing()
                   throws java.lang.InterruptedException
Methode pour arreter le serveur UDP: serverClosing()

java.lang.InterruptedException

getConnectionNb

public int getConnectionNb()