zisko.multicastor.program.mmrp
Class MMRPReceiver

java.lang.Object
  extended by zisko.multicastor.program.mmrp.MMRPEntity
      extended by zisko.multicastor.program.mmrp.MMRPReceiver

public class MMRPReceiver
extends MMRPEntity

Receives packets which are send from the stream.


Constructor Summary
MMRPReceiver(byte[] deviceMACAddress, byte[] streamMACAddress)
           
 
Method Summary
 void stopLoop()
          Stops the procedure which caputures the packets
 boolean waitForDataPacketAndGetIt(byte[] buffer)
          Capture all packets which has the stream MAC address as destination
 
Methods inherited from class zisko.multicastor.program.mmrp.MMRPEntity
deregisterAllPaths, deregisterPath, registerPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMRPReceiver

public MMRPReceiver(byte[] deviceMACAddress,
                    byte[] streamMACAddress)
             throws java.io.IOException
Parameters:
deviceMACAddress - is a byte array which contains the MAC address of the network device.
streamMACAddress - is a byte array which contains the Address of the multicast group
Throws:
java.io.IOException - if the network device was not found
Method Detail

stopLoop

public void stopLoop()
Stops the procedure which caputures the packets


waitForDataPacketAndGetIt

public boolean waitForDataPacketAndGetIt(byte[] buffer)
Capture all packets which has the stream MAC address as destination

Parameters:
buffer - in which the content of the packet will be written
Returns:
true if capture a packet.