TcpIp_ReadAllBuffer


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

Syntax

C++
Python
 
def TcpIp_ReadAllBuffer(
	inSocket: int,
	/,
	*,
	inTimeout: int | None = None
)
-> (
	outBuffer: ByteBuffer | 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 outBuffer ByteBuffer | None Buffer with raw received data, 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.