UDPSocket.Read Function

Returns a Datagram from the internal receive buffer. The address property of the Datagram is the remote address from which the data was sent.

Syntax
result = UDPSocket.Read( [Encoding] )

Parameters
Encoding | TextEncoding (Optional)

Return Value
Result | Datagram

# Notes

The optional Encoding parameter enables you to specify the text encoding of the data to be returned. Use the Encodings object to specify a text encoding.