DatagramPacket

cc.otavia.core.channel.socket.DatagramPacket
class DatagramPacket(message: Buffer, recipient: SocketAddress, sender: Option[SocketAddress]) extends BufferAddressedEnvelope[SocketAddress, DatagramPacket]

The message container that is used for DatagramChannel to communicate with the remote peer.

Attributes

Graph
Supertypes
class BufferAddressedEnvelope[SocketAddress, DatagramPacket]
class DefaultAddressedEnvelope[Buffer, SocketAddress]
trait AddressedEnvelope[Buffer, SocketAddress]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def replace(content: Buffer): DatagramPacket

Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.

Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.

Value parameters

content

The contents of the returned addressed envelope instance.

Attributes

Returns

An addressed envelope instance that has the same recipient and sender as this one, but the given content.

Definition Classes
def touch(hint: Any): DatagramPacket

Inherited methods

override def content: Buffer

Returns the message wrapped by this envelope message.

Returns the message wrapped by this envelope message.

Attributes

Definition Classes
Inherited from:
DefaultAddressedEnvelope
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
DefaultAddressedEnvelope