Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPStream.Seek Method (Longint, Word)
Pascal
function Seek(
    Offset: Longint; 
    Origin: Word
): Longint; override;
Parameters 
Description 
Offset 
Stream offset to locate.
 
Origin 
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).

Seek

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.