UDPSocket.Read Method

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

UDPSocket.Read [Encoding]


Parameters

Encoding (Optional)

TextEncoding


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.