it.unina.traffic
Class TrafficGeneratorUDPReceiver
java.lang.Object
it.unina.traffic.TrafficGeneratorUDPReceiver
- All Implemented Interfaces:
- java.lang.Runnable
public class TrafficGeneratorUDPReceiver
- extends java.lang.Object
- implements java.lang.Runnable
Creation date: 5 oct. 2006
- Author:
- Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
Method Summary |
static int |
CbyteArrayToInt(byte[] b)
Convert a byte array from C to a java int
!!! won't work for negative values
!!! architecture dependent |
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrafficGeneratorUDPReceiver
public TrafficGeneratorUDPReceiver(java.net.DatagramSocket ds,
Writer output)
run
public void run()
- When an object implementing interface
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may
take any action whatsoever.
- Specified by:
run
in interface java.lang.Runnable
- See Also:
Thread.run()
CbyteArrayToInt
public static int CbyteArrayToInt(byte[] b)
- Convert a byte array from C to a java int
!!! won't work for negative values
!!! architecture dependent
- Parameters:
b
- The byte array
- Returns:
- The integer
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.