package piaf

  1. Overview
  2. Docs
val sendfile_once_exn : ?off:int -> len:int -> src:Unix.file_descr -> Unix.file_descr -> int

Calls `sendfile(2)` once.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

val sendfile_once : ?off:int -> len:int -> src:Unix.file_descr -> Unix.file_descr -> (int, Unix.error) result

Calls `sendfile(2)` once. Returns Unix exceptions in a result type.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

val sendfile_exn : ?off:int -> ?len:int -> src:Unix.file_descr -> Unix.file_descr -> int

Calls `sendfile(2)`, possibly repeatedly (if EINTR / EAGAIN is returned) until the entire file has been sent.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

val sendfile : ?off:int -> ?len:int -> src:Unix.file_descr -> Unix.file_descr -> (int, Unix.error) result

Calls `sendfile(2)`, possibly repeatedly (if EINTR is returned) until the entire file has been sent. Returns Unix exceptions in a result type.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

OCaml

Innovation. Community. Security.