Ferreteria/v0.6/fx/OSock

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search

About

  • Purpose: access to the current object's Socket object
  • Definitions:

Usage

clade require implement call / notes
IO\Aspect\Connx\Plug return $this->oSock; $this->oSock is set by WithSocket()
IO\Aspect\Connx\Plug\Chain

in ActualOpen(): $oPlug = $this->OSock()->OPlug();
in ActualShut(): $oPlug = $this->OSock()->OPlug(); - to call $oPlug->ActualShut()
in ForwardCommand(): return $this->OSock()->OPlug()->DoCommand($saCmd,$oBuff,$oAct);
in DescribeInline(): return $this->OSock()->DescribeInline();

IO\Aspect\Connx\Plug\Shell\Remote\SSH

in OCred(): return $this->OSock()->OCred();
in ActualOpen(): $oSock = $this->OSock();
in WrapCommand(): $oSock = $this->OSock();

Sys\Data\Engine\Conn function OSock() : SockIface; return $this->oSock; in Inspect(): return new ($this->InspectorClass())($this,$this->OSock(),$this->OSock()->OCred(),$this);
Sys\Data\Engine\Conn\MyMar return $this->oSock;

in DoCommand(): $oPlug = $this->OSock()->OPlug();
in CredsForCmd(): $oSock = $this->OSock(); // DB connection-from-endpoint socket
in DescribeInline(): 2 calls, building description
in ActualOpen(): to get Socket's Plug and Host
in ActualShut(): $this->OSock()->OConn()->Shut();

Sys\Data\Engine\Oper\MyMar

in NewSchemaList(): $oPlug = $oConn->OSock()->OPlug();
in DoExport(): $oSockDB = $oConnDB->OSock();

Sys\Data\Engine\schema\Ops\MyMar in DoImport(): $oConnx = $oDbConn->OSock();