RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinSocketStream.Seek Method

Always returns 0.

Pascal
function Seek(Offset: Longint; Origin: Word): Longint; override;
C++
virtual __fastcall Longint Seek(Longint Offset, Word Origin);

Seek overrides the inherited method to always set the Position property of the TWinSocketStream object to 0. Socket connections do not support random access. The Position property of a Windows socket stream can only reflect the position at the beginning of all remaining data. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!