sendfile-0.1: A portable sendfile librarySource codeContentsIndex
SendFile
Synopsis
sendFile :: Handle -> FilePath -> IO ()
sendFileMode :: String
Documentation
sendFileSource
:: 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.
sendFileModeSource
:: 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