Skip to content

UdpDatagram

1 min read

Import: import system.net;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

UdpDatagram

One UDP datagram; empty data is a valid message and never denotes EOF.

public class UdpDatagram

data

Received bytes, limited to the requested receive size.

public data: byte[]

host

Numeric address of the sender.

public host: string

port

UDP port of the sender.

public port: int

truncated

True when the message contained more bytes than the receive buffer could retain.

public truncated: bool