about summary refs log tree commit diff
path: root/tvix/docs/src/nix-daemon/handshake.md
blob: 0a436372b3ffb8695b36c5d00488b1da2b8d138c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32


## client -> server
- 0x6e697863 :: [Int](#int) (hardcoded, 'nixc' in ASCII)

## server -> client
- 0x6478696f :: [Int](#int) (hardcoded, 'dxio' in ASCII)
- protocolVersion :: [Int](#int)

## client -> server
- clientVersion :: [Int](#int)

### If clientVersion is 1.14 or later
- sendCpu :: [Bool](#bool) (hardcoded to false in client)
#### If sendCpu is true
- cpuAffinity :: [Int](#int) (obsolete and ignored)

### If clientVersion is 1.11 or later
- reserveSpace :: [Bool](#bool) (obsolete, ignored and set to false)


## server -> client

### If clientVersion is 1.33 or later
- nixVersion :: String

### If clientVersion is 1.35 or later
- trusted :: OptTrusted

## server -> client
- send logs
- [operation](./operations.md) :: Int