forked from lix-project/hydra
Factor out a struct representing a connection to a machine
This commit is contained in:
parent
78ef4ae9a5
commit
5db8642224
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue