![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
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 |
|
virtual |
Flush to direction
| BuildResult nix::WorkerProto::BasicClientConnection::getBuildDerivationResponse | ( | const StoreDirConfig & | store, |
| bool * | daemonException ) |
Get the response, must be paired with putBuildDerivationRequest.
|
static |
Establishes connection, negotiating version.
| to | Taken by reference to allow for various error handling mechanisms. |
| from | Taken by reference to allow for various error handling mechanisms. |
| localVersion | Our version (number + supported features) which is sent over. |
| WorkerProto::ClientHandshakeInfo nix::WorkerProto::BasicClientConnection::postHandshake | ( | const StoreDirConfig & | store | ) |
After calling handshake, must call this to exchange some basic information about the connection.