TcpIp_ReadAllText


Receives text from a connected socket until the other side closes connection.

Syntax

C++
Python
 
def TcpIp_ReadAllText(
	inSocket: int,
	/,
	*,
	inTimeout: int | None = None
)
-> (
	outText: str | None,
	outEof: bool
)

Parameters

Name Type Range Default Description
Input value inSocket int Connected socket ID, will be closed if successfully read.
Input value inTimeout int | None 0 - None Timeout in milliseconds, block if not specified.
Output value outText str | None Received data as textual string, or Nil if the operation was interrupted by timeout.
Output value outEof bool Indicates whether the operation successfully read data to the end of stream.