Modifier and Type | Method and Description |
---|---|
void |
DatagramSocket.receive(DatagramPacket p)
Receives a datagram packet from this socket.
|
void |
DatagramSocket.send(DatagramPacket p)
Sends a datagram packet from this socket.
|
void |
MulticastSocket.send(DatagramPacket p,
byte ttl)
Deprecated.
Use the following code or its equivalent instead:
......
int ttl = mcastSocket.getTimeToLive();
mcastSocket.setTimeToLive(newttl);
mcastSocket.send(p);
mcastSocket.setTimeToLive(ttl);
......
|