sendfile-0.7.6: A portable sendfile library

Safe HaskellSafe-Infered

Network.Socket.SendFile.Linux

Description

Linux system-dependent code for sendfile.

Synopsis

Documentation

_sendFile :: Fd -> Fd -> Int64 -> Int64 -> IO ()Source

automatically loop and send everything

sendFileIterSource

Arguments

:: Fd

file descriptor corresponding to network socket

-> Fd

file descriptor corresponding to file

-> Int64

maximum number of bytes to send at once

-> Int64

offset into file

-> Int64

total number of bytes to send

-> IO Iter 

a way to send things in chunks

sendfile :: Fd -> Fd -> Int64 -> Int64 -> IO (Bool, Int64)Source

low-level wrapper around sendfile non-blocking returns number of bytes written and whether the fd would block (aka, EAGAIN) does not call threadWaitWrite