zisko.multicastor.program.mmrp
Class DataPacket

java.lang.Object
  extended by zisko.multicastor.program.mmrp.DataPacket

public class DataPacket
extends java.lang.Object

Build a packet with source, destination, data length and the data which should be send as information.


Constructor Summary
DataPacket()
           
 
Method Summary
static byte[] getDataPacket(byte[] source, byte[] destination, byte[] data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPacket

public DataPacket()
Method Detail

getDataPacket

public static byte[] getDataPacket(byte[] source,
                                   byte[] destination,
                                   byte[] data)
Parameters:
source - is a byte array which contains the MAC address of the device which will send the packet
destination - is a byte array which contains the MAC address of the device which should received the packet
data - is a byte array which contains the data which should be send
Returns:
the data packet as a byte array