com.dalsemi.onewire.adapter
Class MulticastListener

java.lang.Object
  |
  +--com.dalsemi.onewire.adapter.MulticastListener
All Implemented Interfaces:
Runnable

public class MulticastListener
extends Object
implements Runnable

Generic Mulitcast broadcast listener. Listens for a specific message and, in response, gives the specified reply. Used by NetAdapterHost for automatic discovery of host components for the network-based DSPortAdapter.

Version:
1.00

Constructor Summary
MulticastListener(int multicastPort, String multicastGroup, byte[] expectedMessage, byte[] returnMessage)
           
 
Method Summary
 void run()
           
 void stopListener()
          Waits for datagram listener to finish, with a timeout.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulticastListener

public MulticastListener(int multicastPort,
                         String multicastGroup,
                         byte[] expectedMessage,
                         byte[] returnMessage)
                  throws IOException,
                         UnknownHostException
Method Detail

run

public void run()
Specified by:
run in interface Runnable

stopListener

public void stopListener()
Waits for datagram listener to finish, with a timeout.