Added Methods |
boolean getLoopbackMode()
|
Get the setting for local loopback of multicast datagrams. |
NetworkInterface getNetworkInterface()
|
Get the multicast network interface set. |
void joinGroup(SocketAddress, NetworkInterface)
|
Joins the specified multicast group at the specified interface. |
void leaveGroup(SocketAddress, NetworkInterface)
|
Leave a multicast group on a specified local interface. |
void setLoopbackMode(boolean )
|
Disable/Enable local loopback of multicast datagrams The option is used by the platform's networking code as a hint for setting whether multicast data will be looped back to the local socket. |
void setNetworkInterface(NetworkInterface )
|
Specify the network interface for outgoing multicast datagrams sent on this socket. |
Changed Methods |
byte getTTL()
|
Documentation changed from old to new. |
use the getTimeToLive method instead, which returns an int instead of a byte. |
void setTTL(byte )
|
Documentation changed from old to new. |
use the setTimeToLive method instead, which uses int instead of byte as the type for ttl. |
void setTimeToLive(int )
|
Documentation changed from old to new. |
Set the default time-to-live for multicast packets sent out on this MulticastSocket in order to control the scope of the multicasts. |
void joinGroup(InetAddress )
|
Documentation changed from old to new. |
Joins a multicast group. |
void leaveGroup(InetAddress )
|
Documentation changed from old to new. |
Leave a multicast group. |
void send(DatagramPacket, byte)
|
Documentation changed from old to new. Now deprecated.
|
Use the following code or its equivalent instead: ...... |