Back to FabImage Library website

You are here: Start » Function Reference » TCP IP » TcpIp_ReadChunk_Deprecated

TcpIp_ReadChunk_Deprecated


Header:STD.h
Namespace:fil

Receives a fixed number of bytes from a connected TCP socket.

Syntax

void fil::TcpIp_ReadChunk_Deprecated
(
	fil::SocketId inSocket,
	int inLength,
	const ftl::Optional<int>& inTimeout,
	ftl::Conditional<ftl::String>& outText,
	ftl::Array<int>& outBytes,
	bool& outEof
)

Parameters

Name Type Range Default Description
inSocket SocketId Connected socket ID.
inLength int 1 - 20971520 Number of bytes to receive.
inTimeout const Optional<int>& 0 - NIL Timeout in milliseconds, block if not specified.
outText Conditional<String>& Received data as textual string.
outBytes Array<int>& Received octets as integer values.
outEof bool& Indicates whether the operation was interrupted on attempt to get data from beyond the end of stream

Description

This filter is deprecated. Use TcpIp_ReadBuffer instead.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.