System.Win.ScktComp.TWinSocketStream.Seek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Seek(Offset: Longint; Origin: Word): Longint; override;

C++

virtual System::LongInt __fastcall Seek(System::LongInt Offset, System::Word Origin)/* overload */;
inline __int64 __fastcall  Seek(const __int64 Offset, System::Classes::TSeekOrigin Origin){ return System::Classes::TStream::Seek(Offset, Origin); }
inline __int64 __fastcall  Seek(const __int64 Offset, System::Word Origin){ return System::Classes::TStream::Seek(Offset, Origin); }

Properties

Type Visibility Source Unit Parent
function public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TWinSocketStream

Description

Always returns 0.

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.

See Also