Nix 2.26.3
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)
 
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, std::function< void(Source &)> fun)
 
void importPaths (const StoreDirConfig &store, bool *daemonException, Source &source)
 
- Public Member Functions inherited from nix::WorkerProto::BasicConnection
 operator WorkerProto::ReadConn ()
 
 operator WorkerProto::WriteConn ()
 

Static Public Member Functions

static std::tuple< Version, std::set< Feature > > handshake (BufferedSink &to, Source &from, WorkerProto::Version localVersion, const std::set< Feature > &supportedFeatures)
 

Additional Inherited Members

- Public Attributes inherited from nix::WorkerProto::BasicConnection
FdSink to
 
FdSource from
 
WorkerProto::Version protoVersion
 
std::set< Feature > features
 

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()

std::tuple< WorkerProto::Version, std::set< WorkerProto::Feature > > nix::WorkerProto::BasicClientConnection::handshake ( BufferedSink & to,
Source & from,
WorkerProto::Version localVersion,
const std::set< Feature > & supportedFeatures )
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 which is sent over.
supportedFeaturesThe protocol features that we support.

◆ postHandshake()

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

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


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