Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::WorkerProto::BasicServerConnection Struct Reference
Inheritance diagram for nix::WorkerProto::BasicServerConnection:
nix::WorkerProto::BasicConnection

Public Member Functions

void postHandshake (const StoreDirConfig &store, const ClientHandshakeInfo &info)
 
- 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
 

Member Function Documentation

◆ handshake()

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

◆ postHandshake()

void nix::WorkerProto::BasicServerConnection::postHandshake ( const StoreDirConfig & store,
const ClientHandshakeInfo & info )

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: