Ferreteria/v0.6/fx/OSock

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Revision as of 22:58, 4 December 2025 by Woozle (talk | contribs) (Created page with "{{page/fx}} ==About== * '''Purpose''': access to the current object's {{l/ver/clade|IO\Aspect|Socket}} object * '''Definitions''': ** '''A''': <code>protected function OSock() : {{l/ver/clade|IO\Aspect\Socket|SockIface}}</code> ** '''B''': <code>public function OSock() : {{l/ver/clade|IO\Aspect\Socket|SockIface}}</code> ==Usage== {| class="wikitable sortable" ! clade || require || implement || call || notes {{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx|Plug}}</code> |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);

(2025-12-04 #TODO: documentation in progress)