TIdServeFile
Function type for an optimized file transmission procedure.
Unit
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.