net.multicast
Class Utils
java.lang.Object
net.multicast.Utils
public class Utils
- extends java.lang.Object
Copyright DocJava, inc. User: lyon
Date: Nov 24, 2004
Time: 6:30:54 PM
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getMulticastSocket
public static java.net.MulticastSocket getMulticastSocket(int port,
java.net.InetAddress inetAddress)
throws java.io.IOException
- Throws:
java.io.IOException
getMcastAddress
public static java.net.InetAddress getMcastAddress()
throws java.net.UnknownHostException
- Returns:
- a multi-cast address
- Throws:
java.net.UnknownHostException
closeSocket
public static void closeSocket(java.net.MulticastSocket mcastSocket,
java.net.InetAddress inetAddress)
throws java.io.IOException
- Throws:
java.io.IOException
getInetAddressAsBytes
public static byte[] getInetAddressAsBytes()
throws java.io.IOException
- Throws:
java.io.IOException