Method and Description |
---|
java.net.MulticastSocket.getTTL()
use the getTimeToLive method instead, which returns
an int instead of a byte.
|
java.net.MulticastSocket.send(DatagramPacket, byte)
Use the following code or its equivalent instead:
......
int ttl = mcastSocket.getTimeToLive();
mcastSocket.setTimeToLive(newttl);
mcastSocket.send(p);
mcastSocket.setTimeToLive(ttl);
......
|
java.net.MulticastSocket.setTTL(byte)
use the setTimeToLive method instead, which uses
int instead of byte as the type for ttl.
|