UdpPacket encapsulates an IpAddress, port, and payload of bytes to send or receive from a UdpSocket.
Slots
- addressSource
-
IpAddress? address := nullThe send or receive IpAddress. Defaults to null.
- dataSource
-
Buf? data := nullThe payload to send or received. Defaults to null. The data buffer must always be a memory backed buffer.
- makeSource
-
new make(IpAddress? addr := null, Int? port := null, Buf? data := null)Construct a new UdpPacket.
- portSource
-
Int? port := nullThe send or receive port number. Defaults to null.