Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::WorkerProto::BasicClientConnection Struct Referenceabstract
Inheritance diagram for nix::WorkerProto::BasicClientConnection:
nix::WorkerProto::BasicConnection nix::RemoteStore::Connection nix::SSHStore::Connection

Public Member Functions

virtual ~BasicClientConnection ()
virtual void closeWrite ()=0
std::exception_ptr processStderrReturn (Sink *sink=0, Source *source=0, bool flush=true, bool block=true)
void processStderr (bool *daemonException, Sink *sink=0, Source *source=0, bool flush=true, bool block=true)
ClientHandshakeInfo postHandshake (const StoreDirConfig &store)
void addTempRoot (const StoreDirConfig &remoteStore, bool *daemonException, const StorePath &path)
StorePathSet queryValidPaths (const StoreDirConfig &remoteStore, bool *daemonException, const StorePathSet &paths, SubstituteFlag maybeSubstitute)
std::optional< UnkeyedValidPathInfo > queryPathInfo (const StoreDirConfig &store, bool *daemonException, const StorePath &path)
void putBuildDerivationRequest (const StoreDirConfig &store, bool *daemonException, const StorePath &drvPath, const BasicDerivation &drv, BuildMode buildMode)
BuildResult getBuildDerivationResponse (const StoreDirConfig &store, bool *daemonException)
void narFromPath (const StoreDirConfig &store, bool *daemonException, const StorePath &path, fun< void(Source &)> receiveNar)
Public Member Functions inherited from nix::WorkerProto::BasicConnection
 operator WorkerProto::ReadConn ()
 operator WorkerProto::WriteConn ()

Static Public Member Functions

static Version handshake (BufferedSink &to, Source &from, const Version &localVersion)

Additional Inherited Members

Public Attributes inherited from nix::WorkerProto::BasicConnection
FdSink to
FdSource from
WorkerProto::Version protoVersion

Constructor & Destructor Documentation

◆ ~BasicClientConnection()

nix::WorkerProto::BasicClientConnection::~BasicClientConnection ( )
virtual

Flush to direction

Member Function Documentation

◆ getBuildDerivationResponse()

BuildResult nix::WorkerProto::BasicClientConnection::getBuildDerivationResponse ( const StoreDirConfig & store,
bool * daemonException )

Get the response, must be paired with putBuildDerivationRequest.

◆ handshake()

WorkerProto::Version nix::WorkerProto::BasicClientConnection::handshake ( BufferedSink & to,
Source & from,
const Version & localVersion )
static

Establishes connection, negotiating version.

Returns
The minimum version supported by both sides and the set of protocol features supported by both sides.
Parameters
toTaken by reference to allow for various error handling mechanisms.
fromTaken by reference to allow for various error handling mechanisms.
localVersionOur version (number + supported features) which is sent over.

◆ postHandshake()

WorkerProto::ClientHandshakeInfo nix::WorkerProto::BasicClientConnection::postHandshake ( const StoreDirConfig & store)

After calling handshake, must call this to exchange some basic information about the connection.


The documentation for this struct was generated from the following files: