receive method Null safety

Datagram? receive()

Receives a datagram.

Returns null if there are no datagrams available.

The maximum length of the datagram that can be received is 65503 bytes.

Implementation

Datagram? receive();