logo

class

inet::UdpPacket

sys::Obj
  inet::UdpPacket

UdpPacket encapsulates an IpAddress, port, and payload of bytes to send or receive from a UdpSocket.

Slots

address

IpAddress address := null

The send or receive IpAddress. Defaults to null.

Source

data

Buf data := null

The payload to send or received. Defaults to null. The data buffer must always be a memory backed buffer.

Source

make

new make(IpAddress addr := null, Int port := null, Buf data := null)

Construct a new UdpPacket.

Source

port

Int port := null

The send or receive port number. Defaults to null.

Source