| Package | Description |
|---|---|
| java.net |
Provides the classes for implementing networking applications.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
DatagramSocketImpl.peekData(DatagramPacket
Peek at the packet to see who it is from.
|
void |
DatagramSocket.receive(DatagramPacket
Receives a datagram packet from this socket.
|
protected abstract void |
DatagramSocketImpl.receive(DatagramPacket
Receive the datagram packet.
|
void |
DatagramSocket.send(DatagramPacket
Sends a datagram packet from this socket.
|
protected abstract void |
DatagramSocketImpl.send(DatagramPacket
Sends a datagram packet.
|
void |
MulticastSocket.send(DatagramPacket
Deprecated.
Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ......
|