Indy 9
TIdServeFile
Unit: IdStack
Function type for an optimized file transmission procedure.
TIdServeFile = function (ASocket: TIdStackSocketHandle; AFileName: string): cardinal;
Unit
IdStack
Parameters
AFileName
File name to be transmitted.
ASocket
Socket descriptor for the connection.
Return Value
Cardinal - File size in bytes.
Description
TIdServeFile is a Cardinal function type that represents the function used to perform file transmission. TIdServeFile abstracts the ServeFile function under Windows NT that is optimized for sequential read-only access. GServeFile is the application global instance of the function for Indy.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.