Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
filetransfer.hh File Reference
#include "lix/libutil/box_ptr.hh"
#include "lix/libutil/ref.hh"
#include "lix/libutil/logging.hh"
#include "lix/libutil/serialise.hh"
#include "lix/libutil/types.hh"
#include "lix/libutil/config.hh"
#include <string>
#include <future>
#include "file-transfer-settings.gen.inc"

Go to the source code of this file.

Classes

struct  nix::FileTransferSettings
struct  nix::FileTransferResult
struct  nix::FileTransfer
class  nix::FileTransferError

Functions

ref< FileTransfernix::getFileTransfer ()
ref< FileTransfernix::makeFileTransfer (std::optional< unsigned int > baseRetryTimeMs)

Function Documentation

◆ getFileTransfer()

ref< FileTransfer > nix::getFileTransfer ( )
Returns
a shared FileTransfer object.

Using this object is preferred because it enables connection reuse and HTTP/2 multiplexing.

◆ makeFileTransfer()

ref< FileTransfer > nix::makeFileTransfer ( std::optional< unsigned int > baseRetryTimeMs = {})
Returns
a new FileTransfer object

Prefer getFileTransfer() to this; see its docs for why.