class inet::UdpPacket

sys::Obj
  inet::UdpPacket

Source

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

addr

IpAddr? addr := null

Source

The send or receive IpAddr. Defaults to null.

data

Buf? data := null

Source

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

make

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

Source

Construct a new UdpPacket.

port

Int? port := null

Source

The send or receive port number. Defaults to null.