sendfile-0.1: A portable sendfile librarySource codeContentsIndex
sendFile :: Handle -> FilePath -> IO ()
sendFileMode :: String
:: HandleThe output Handle
-> FilePathThe path where the input file resides
-> IO ()Whether or not the transmission was successful
A cross-platform wrapper for sendfile -- this implements an available operating-system call if supported, otherwise it falls back to a portable haskell implementation. It takes a Handle which it will first flush before handing it to the operating system to perform the transmission.
:: StringThe mode that sendfile was compiled with
Returns the mode that sendfile was compiled with. Mainly for debugging use. Possible values are WIN32_SENDFILE and PORTABLE_SENDFILE.
Produced by Haddock version 2.4.2