TCPSocket.ReadAll

From Xojo Documentation

Method

TCPSocket.ReadAll([Encoding as TextEncoding]) As String

Supported for all project types and targets.

Reads all the data from the internal buffer.

Returns the data as a String. 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.

Example

This example reads all the data in the buffer into a TextArea.

TextField1.AddText(listener.ReadAll)