net.spy.log
Class MCastListener

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.log.MCastListener

public class MCastListener
extends SpyObject

Listen for multicast messages.


Constructor Summary
MCastListener(InetAddress ia, int port)
          Get an instance of MCastListener listening on the given group and port.
 
Method Summary
 void close()
          Close up the multicast socket and free any other resources this thing is using.
 SpyMessage getNextMessage()
          Get the next message in the multicast group.
static void main(String[] args)
          Testing and what not.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCastListener

public MCastListener(InetAddress ia,
                     int port)
              throws IOException
Get an instance of MCastListener listening on the given group and port.

Method Detail

getNextMessage

public SpyMessage getNextMessage()
                          throws IOException
Get the next message in the multicast group.

Throws:
IOException

close

public void close()
Close up the multicast socket and free any other resources this thing is using.


main

public static void main(String[] args)
                 throws Exception
Testing and what not.

Throws:
Exception