Factor out a struct representing a connection to a machine

This commit is contained in:
Théophane Hufschmitt 2022-03-21 16:02:51 +01:00
parent 78ef4ae9a5
commit 5db8642224

View file

@ -290,6 +290,16 @@ struct Machine
{
return sshName == "localhost";
}
// A connection to a machine
struct Connection {
nix::FdSink to;
nix::FdSource from;
unsigned int remoteVersion;
// Backpointer to the machine
ptr machine;
};
};