net.multicast
Class Utils

java.lang.Object
  extended by 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()
           
 
Method Summary
static void closeSocket(java.net.MulticastSocket mcastSocket, java.net.InetAddress inetAddress)
           
static java.net.InetAddress getMcastAddress()
           
static java.net.MulticastSocket getMulticastSocket(int port, java.net.InetAddress inetAddress)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

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