Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPStream.Seek
Reimplements locating a position in a stream.

function Seek(AOffset: Longint; AOrigin: Word): Longint; override;
Parameters
AOffset: Longint
Number of bytes to move in the stream from the specified position.

AOrigin: Word
Identifies the origin for the AOffset parameter.

Returns
Longint - New Position in the stream.

Description
Seek is an overridden LongInt function that reimplements locating a position in the TStream descendant.

Note: Because input and output operations are redirected to a socket connect, and values are not written to the stream, TIdTCPStream does not support seeking a location in the TStream descendant. The return value for Seek, the new Position in the stream, is always -1.