net.multicast
Class McastUtil
java.lang.Object
net.multicast.McastUtil
public class McastUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
McastUtil
public McastUtil(int port)
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()