java.net
Class MulticastSocket

java.lang.Object
  |
  +--java.net.DatagramSocket
        |
        +--java.net.MulticastSocket

public synchronized class MulticastSocket
extends DatagramSocket


Constructor Summary
MulticastSocket()
           
MulticastSocket(int)
           
MulticastSocket(SocketAddress)
           
 
Method Summary
 InetAddress getInterface()
           
 boolean getLoopbackMode()
           
 NetworkInterface getNetworkInterface()
           
 int getTimeToLive()
           
 byte getTTL()
           
 void joinGroup(InetAddress)
           
 void joinGroup(SocketAddress, NetworkInterface)
           
 void leaveGroup(InetAddress)
           
 void leaveGroup(SocketAddress, NetworkInterface)
           
 void send(DatagramPacket, byte)
           
 void setInterface(InetAddress)
           
 void setLoopbackMode(boolean)
           
 void setNetworkInterface(NetworkInterface)
           
 void setTimeToLive(int)
           
 void setTTL(byte)
           
 
Methods inherited from class java.net.DatagramSocket
bind, close, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, receive, send, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

MulticastSocket

public MulticastSocket()
                throws IOException

MulticastSocket

public MulticastSocket(int)
                throws IOException

MulticastSocket

public MulticastSocket(SocketAddress)
                throws IOException
Method Detail

setTTL

public void setTTL(byte)
            throws IOException
IOException

setTimeToLive

public void setTimeToLive(int)
                   throws IOException
IOException

getTTL

public byte getTTL()
            throws IOException
IOException

getTimeToLive

public int getTimeToLive()
                  throws IOException
IOException

joinGroup

public void joinGroup(InetAddress)
               throws IOException
IOException

leaveGroup

public void leaveGroup(InetAddress)
                throws IOException
IOException

joinGroup

public void joinGroup(SocketAddress,
                      NetworkInterface)
               throws IOException
IOException

leaveGroup

public void leaveGroup(SocketAddress,
                       NetworkInterface)
                throws IOException
IOException

setInterface

public void setInterface(InetAddress)
                  throws SocketException
SocketException

getInterface

public InetAddress getInterface()
                         throws SocketException
SocketException

setNetworkInterface

public void setNetworkInterface(NetworkInterface)
                         throws SocketException
SocketException

getNetworkInterface

public NetworkInterface getNetworkInterface()
                                     throws SocketException
SocketException

setLoopbackMode

public void setLoopbackMode(boolean)
                     throws SocketException
SocketException

getLoopbackMode

public boolean getLoopbackMode()
                        throws SocketException
SocketException

send

public void send(DatagramPacket,
                 byte)
          throws IOException
IOException