Nix 2.36.0
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 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

Member Function Documentation

◆ handshake()

WorkerProto::Version nix::WorkerProto::BasicServerConnection::handshake ( BufferedSink & to,
Source & from,
const Version & localVersion )
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 (number + supported features) which is sent over.

◆ postHandshake()

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

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: