From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

Supported for all project types and targets.

Returns a Datagram from the internal receive buffer.


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.