net.multicast
Class McastUtil

java.lang.Object
  extended by net.multicast.McastUtil

public class McastUtil
extends java.lang.Object


Constructor Summary
McastUtil(int port)
           
 
Method Summary
 void disableLoopBack()
           
 void enableLoopBack()
          get rid of confusing setter.
 byte[] getBytes()
          Invocation blocks the callers' thread of execution, so invoke inside of another thread, in a loop.
 java.net.InetAddress getInetAddress()
           
 java.net.MulticastSocket getMcastSocket()
           
 int getPort()
           
 java.net.InetAddress getReceiveAddress()
           
 java.net.InetAddress getSendAddress()
           
 void sendBytes(byte[] b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McastUtil

public McastUtil(int port)
Method Detail

enableLoopBack

public void enableLoopBack()
get rid of confusing setter.


disableLoopBack

public void disableLoopBack()

getBytes

public byte[] getBytes()
                throws java.io.IOException
Invocation blocks the callers' thread of execution, so invoke inside of another thread, in a loop.

Returns:
Throws:
java.io.IOException

sendBytes

public void sendBytes(byte[] b)
               throws java.io.IOException
Throws:
java.io.IOException

getPort

public int getPort()

getInetAddress

public java.net.InetAddress getInetAddress()

getMcastSocket

public java.net.MulticastSocket getMcastSocket()

getReceiveAddress

public java.net.InetAddress getReceiveAddress()

getSendAddress

public java.net.InetAddress getSendAddress()