Ferreteria/v0.6/clade/IO/Aspect/Connx/Stream/Runner/Remote
Jump to navigation
Jump to search
| ||||||||||||||||||||||||||||
About
- Purpose: a shell connection to a remote machine
History
- 2025-03-15 rebuilding, code was in the ItWent class, how did this ever even work??
- 2026-01-31 moving
Shell⇒Runner
Code
interface iRemote extends BaseIface, ClientIface, ServerIface {
// SETUP
static function FromEntry(EntryIface $o) : SelfIface;
// OBJECTS
function NewTunnel(CredsIface $oICreds, ?int $nPortLocal=NULL) : TunnelIface;
}
abstract class caRemote extends BaseClass implements SelfIface {
// ++ SETUP ++ //
public static function FromEntry(EntryIface $o) : SelfIface {
$oThis = new static;
$oThis->OEntry($o);
return $oThis;
}
// -- SETUP -- //
// ++ OBJECTS ++ //
private $oEnt;
public function OEntry(?EntryIface $o=NULL) : EntryIface { return is_null($o) ? $this->oEnt : ($this->oEnt = $o); }
// -- OBJECTS -- //
}