Contents

maximumDatagramLength

The maximum size of a datagram to be written currently.

Declaration

var maximumDatagramLength: Int { get }

Discussion

If a datagram is written with a longer length than maximumDatagramLength, the datagram may be fragmented or encounter an error. Note that this value is not guaranteed to be the maximum datagram length for end-to-end communication across the network. Use Key-Value Observing to watch this property.

See Also

Transferring data