org.neo.swarm.util.network.multicast
Class MulticastReader

java.lang.Object
  extended byorg.neo.swarm.util.network.multicast.MulticastReader
All Implemented Interfaces:
Receiver

public class MulticastReader
extends java.lang.Object
implements Receiver

Receives multicast byte[] data.

Author:
navery

Constructor Summary
MulticastReader(java.net.InetAddress group, int port, int timeout)
           
 
Method Summary
 void close()
           
 byte[] read()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulticastReader

public MulticastReader(java.net.InetAddress group,
                       int port,
                       int timeout)
Parameters:
timeout - specifies blocking operation timeout in ms. 0 is infinite
Method Detail

read

public byte[] read()
            throws java.io.IOException
Specified by:
read in interface Receiver
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface Receiver
Throws:
java.io.IOException


Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.