Factor out a struct representing a connection to a machine

This commit is contained in:
Théophane Hufschmitt
2022-03-29 16:52:59 +02:00
parent 78ef4ae9a5
commit 5db8642224
+10
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;
};
};