Documentation

Hale.SimpleSendfile.Network.Sendfile

A portion of a file to send.

  • offset : Nat

    Offset in bytes from start of file.

  • count : Nat

    Number of bytes to send. 0 means to end of file.

Instances For
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Send a file (or portion thereof) over a connected socket. Uses read+send fallback implementation. $$\text{sendFile} : \text{Socket}\ \texttt{.connected} \to \text{String} \to \text{Option}(\text{FilePart}) \to \text{IO}(\text{Unit})$$

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[inline]

          Send an entire file over a connected socket. $$\text{sendFileSimple} : \text{Socket}\ \texttt{.connected} \to \text{String} \to \text{IO}(\text{Unit})$$

          Equations
          Instances For