Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ServeProto::BasicServerConnection Struct Reference

Static Public Member Functions

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

Member Function Documentation

◆ handshake()

ServeProto::Version nix::ServeProto::BasicServerConnection::handshake ( BufferedSink & to,
Source & from,
ServeProto::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 which is sent over

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