DatagramChannel to communicate with the remote peer.
| Access | Constructor and Description |
|---|---|
| public | DatagramPacket(Buffer message, SocketAddress recipient, SocketAddress sender)
Create a new instance with the specified packet |
| public | DatagramPacket(Buffer message, SocketAddress recipient)
Create a new instance with the specified packet |
| Modifier and Type | Method and Description |
|---|---|
| public DatagramPacket | replace(Buffer
The contents of the returned addressed envelope instance. content)Implements abstract io. |
| public DatagramPacket | touch(Object
An optional hint about this access and its context. May be hint)null.Overrides default io. |
| DatagramPacket | back to summary |
|---|---|
| public DatagramPacket(Buffer message, SocketAddress recipient, SocketAddress sender) Create a new instance with the specified packet | |
| DatagramPacket | back to summary |
|---|---|
| public DatagramPacket(Buffer message, SocketAddress recipient) Create a new instance with the specified packet | |
| replace | back to summary |
|---|---|
| public DatagramPacket replace(Buffer content) Implements abstract io. Doc from io. Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.
| |
| touch | back to summary |
|---|---|
| public DatagramPacket touch(Object hint) Overrides default io. Doc from io. Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
| |