org.jdiagnose.remote.comms
Class MulticastSupport

java.lang.Object
  extended byorg.jdiagnose.remote.comms.MulticastSupport
Direct Known Subclasses:
MulticastListener, MulticastSender

public class MulticastSupport
extends java.lang.Object

Author:
jmccrindle

Constructor Summary
MulticastSupport()
           
 
Method Summary
 void destroy()
           
 java.net.InetAddress getGroup()
           
 int getLength()
           
 java.net.InetAddress getMulticastInterface()
           
 int getPort()
           
 java.net.MulticastSocket getSocket()
           
 int getSoTimeout()
           
 void init()
           
 void setGroup(java.net.InetAddress group)
           
 void setGroup(java.lang.String group)
           
 void setLength(int length)
           
 void setMulticastInterface(java.net.InetAddress multicastInterface)
           
 void setMulticastInterface(java.lang.String multicastInterface)
           
 void setPort(int port)
           
 void setSoTimeout(int soTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulticastSupport

public MulticastSupport()
Method Detail

init

public void init()
          throws java.io.IOException
Throws:
java.io.IOException

destroy

public void destroy()
             throws java.net.UnknownHostException,
                    java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

setGroup

public void setGroup(java.lang.String group)
              throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

setMulticastInterface

public void setMulticastInterface(java.lang.String multicastInterface)
                           throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getGroup

public java.net.InetAddress getGroup()
Returns:
Returns the group.

setGroup

public void setGroup(java.net.InetAddress group)
Parameters:
group - The group to set.

getLength

public int getLength()
Returns:
Returns the length.

setLength

public void setLength(int length)
Parameters:
length - The length to set.

getMulticastInterface

public java.net.InetAddress getMulticastInterface()
Returns:
Returns the multicastInterface.

setMulticastInterface

public void setMulticastInterface(java.net.InetAddress multicastInterface)
Parameters:
multicastInterface - The multicastInterface to set.

getPort

public int getPort()
Returns:
Returns the port.

setPort

public void setPort(int port)
Parameters:
port - The port to set.

getSoTimeout

public int getSoTimeout()
Returns:
Returns the soTimeout.

setSoTimeout

public void setSoTimeout(int soTimeout)
Parameters:
soTimeout - The soTimeout to set.

getSocket

public java.net.MulticastSocket getSocket()
Returns:
Returns the socket.


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.