-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Cross platform library for the sendfile system call
--   
--   Cross platform library for the sendfile system call. This library
--   tries to call minimum system calls which are the bottleneck of web
--   servers.
@package simple-sendfile
@version 0.2.14


-- | Cross platform library for the sendfile system call. This library
--   tries to call minimum system calls which are the bottleneck of web
--   servers.
module Network.Sendfile

-- | Sendfile emulation using conduit. Used system calls:
--   
--   <ul>
--   <li>Used system calls: open(), stat(), read(), send() and
--   close().</li>
--   </ul>
sendfile :: Socket -> FilePath -> FileRange -> IO () -> IO ()

-- | Sendfile emulation using conduit. Used system calls:
--   
--   <ul>
--   <li>Used system calls: open(), stat(), read(), writev(), send() and
--   close().</li>
--   </ul>
sendfileWithHeader :: Socket -> FilePath -> FileRange -> IO () -> [ByteString] -> IO ()

-- | File range for <tt>sendfile</tt>.
data FileRange
EntireFile :: FileRange
PartOfFile :: Integer -> Integer -> FileRange
rangeOffset :: FileRange -> Integer
rangeLength :: FileRange -> Integer
