zisko.multicastor.program.mmrp
Class MMRPPacket

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

public class MMRPPacket
extends java.lang.Object

Build and return the MMRPPacket


Constructor Summary
MMRPPacket()
           
 
Method Summary
static byte[] getEmpty(byte[] source, byte[] firstValue)
           
static byte[] getIn(byte[] source, byte[] firstValue)
           
static byte[] getJoinEmpty(byte[] source, byte[] firstValue)
           
static byte[] getJoinIn(byte[] source, byte[] firstValue)
          return a joinIn
static byte[] getLeave(byte[] source, byte[] firstValue)
           
static byte[] getLeaveAll(byte[] source, byte[] firstValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMRPPacket

public MMRPPacket()
Method Detail

getJoinIn

public static byte[] getJoinIn(byte[] source,
                               byte[] firstValue)
return a joinIn

Parameters:
source - is the MAC address of the device which will send the packet
firstValue - is the MAC address of the multicast group

getIn

public static byte[] getIn(byte[] source,
                           byte[] firstValue)
Parameters:
source - is the MAC address of the device which will send the packet
firstValue - is the MAC address of the multicast group

getJoinEmpty

public static byte[] getJoinEmpty(byte[] source,
                                  byte[] firstValue)
Parameters:
source - is the MAC address of the device which will send the packet
firstValue - is the MAC address of the multicast group

getEmpty

public static byte[] getEmpty(byte[] source,
                              byte[] firstValue)
Parameters:
source - is the MAC address of the device which will send the packet
firstValue - is the MAC address of the multicast group

getLeave

public static byte[] getLeave(byte[] source,
                              byte[] firstValue)
Parameters:
source - is the MAC address of the device which will send the packet
firstValue - is the MAC address of the multicast group

getLeaveAll

public static byte[] getLeaveAll(byte[] source,
                                 byte[] firstValue)
Parameters:
source - is the MAC address of the device which will send the packet
firstValue - is the MAC address of the multicast group