snix/tvix/docs/src/nix-daemon/handshake.md
Brian Olsen 28dbf5f0eb chore(tvix/docs): Small changes to Nix Daemon protocol description
I found some more operations that are obsolete and a few missing
fields. I also did some small changes to make handshake description
more consistent.

Change-Id: I9f853a37e9d50621491f31ea71879d6a600046e2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12724
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2024-11-03 20:49:19 +00:00

740 B

client -> server

  • 0x6e697863 :: Int (hardcoded, 'nixc' in ASCII)

client <- server

  • 0x6478696f :: Int (hardcoded, 'dxio' in ASCII)
  • protocolVersion :: Int

client -> server

  • clientVersion :: Int

If clientVersion is 1.14 or later

  • sendCpu :: Bool (hardcoded to false in client)

If sendCpu is true

  • cpuAffinity :: Int (obsolete and ignored)

If clientVersion is 1.11 or later

  • reserveSpace :: Bool (obsolete, ignored and set to false)

client <- server

If clientVersion is 1.33 or later

  • nixVersion :: String

If clientVersion is 1.35 or later

  • trusted :: OptTrusted

client <- server