Internet Direct (Indy)
Home
PreviousUpNext
TIdServeFile Type

Function type for an optimized file transmission procedure.

Pascal
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.

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.