Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ServeProto::BasicClientConnection Struct Reference
Inheritance diagram for nix::ServeProto::BasicClientConnection:
nix::LegacySSHStore::Connection

Public Member Functions

 operator ServeProto::ReadConn ()
 
 operator ServeProto::WriteConn ()
 
StorePathSet queryValidPaths (const StoreDirConfig &remoteStore, bool lock, const StorePathSet &paths, SubstituteFlag maybeSubstitute)
 
std::map< StorePath, UnkeyedValidPathInfoqueryPathInfos (const StoreDirConfig &store, const StorePathSet &paths)
 
void putBuildDerivationRequest (const StoreDirConfig &store, const StorePath &drvPath, const BasicDerivation &drv, const ServeProto::BuildOptions &options)
 
BuildResult getBuildDerivationResponse (const StoreDirConfig &store)
 
void narFromPath (const StoreDirConfig &store, const StorePath &path, std::function< void(Source &)> fun)
 
void importPaths (const StoreDirConfig &store, std::function< void(Sink &)> fun)
 

Static Public Member Functions

static ServeProto::Version handshake (BufferedSink &to, Source &from, ServeProto::Version localVersion, std::string_view host)
 

Public Attributes

FdSink to
 
FdSource from
 
ServeProto::Version remoteVersion
 

Member Function Documentation

◆ getBuildDerivationResponse()

BuildResult nix::ServeProto::BasicClientConnection::getBuildDerivationResponse ( const StoreDirConfig & store)

Get the response, must be paired with putBuildDerivationRequest.

◆ handshake()

ServeProto::Version nix::ServeProto::BasicClientConnection::handshake ( BufferedSink & to,
Source & from,
ServeProto::Version localVersion,
std::string_view host )
static

Establishes connection, negotiating version.

Returns
the version provided by the other side of the connection.
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
hostJust used to add context to thrown exceptions.

◆ operator ServeProto::ReadConn()

nix::ServeProto::BasicClientConnection::operator ServeProto::ReadConn ( )
inline

Coercion to ServeProto::ReadConn. This makes it easy to use the factored out serve protocol serializers with a LegacySSHStore::Connection.

The serve protocol connection types are unidirectional, unlike this type.

◆ operator ServeProto::WriteConn()

nix::ServeProto::BasicClientConnection::operator ServeProto::WriteConn ( )
inline

Coercion to ServeProto::WriteConn. This makes it easy to use the factored out serve protocol serializers with a LegacySSHStore::Connection.

The serve protocol connection types are unidirectional, unlike this type.


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