Topic Path: Symbol Reference > Types > TIdServeFile Type
ContentsIndexHome
PreviousUpNext
TIdServeFile Type

Function type for an optimized file transmission procedure.

File
TIdServeFile = function (ASocket: TIdStackSocketHandle; AFileName: string): cardinal;
Parameters 
Description 
ASocket 
Socket handle for the connection.
 
AFileName 
File name to be transmitted. 

Cardinal - File size in bytes.

TIdServeFile is a Cardinal function type that represents the function used to perform optimized file transmission for a specifc platform. 

Use GServeFileProc to set the procedure used in a descendant class for a specifc host platform or operating system.

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