UDPSocket.Read

From Xojo Documentation

Method

UDPSocket.Read([Encoding as TextEncoding]) As Datagram

Supported for all project types and targets.

Returns a Datagram from the internal receive buffer.

Notes

The address property of the Datagram is the remote address from which the data was sent. The optional Encoding parameter enables you to specify the text encoding of the data to be returned. Use the Encodings module to specify a text encoding.