forked from lix-project/hydra
Factor out a struct representing a connection to a machine
This commit is contained in:
parent
78ef4ae9a5
commit
5db8642224
1 changed files with 10 additions and 0 deletions
|
@ -290,6 +290,16 @@ struct Machine
|
||||||
{
|
{
|
||||||
return sshName == "localhost";
|
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