Topic Path: Symbol Reference > Classes > TIdTCPStream Class > TIdTCPStream Methods > Seek Method > Seek Method (Longint, Word)
TIdTCPStream.Seek Method (Longint, Word)
function Seek(
    Offset: Longint; 
    Origin: Word
): Longint; override;
Stream offset to locate.
Realtive origin for the desired stream offset. 

LongInt - Stream position following the seek operation.

Seek is an overloaded overridden method used to move the current position in the stream to an offset relative to a particular stream origin. The return value for the method indicates the new stream position following the seek operation. 

Please note that socket-based streams do not provide this type of random access operation; socket-based streams are intended for sequential access. As a result, the Seek method performs no stream positioning and always reports that the current stream position is at its' head (offset 0).


Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.