public function ROUT() { $cmd = $this->ReadC(); $this->SendSTART(); switch ($cmd) { case "Create": $id = $this->ReadI(); $this->SlaveWorker($id, "--name", "wk-cl-" . $id, "@", "--name", "wk-sv-" . $id, "--factory", $this->ReadC()); break; case "Ident": $this->SendC($this->FactoryCtxIdentGet()); break; case "Resolve": # Resolve-Example for PHP foreach (MqS::Resolve($this->ReadC()) as $myctx) { $this->SendC($myctx->LinkGetTargetIdent()); } break; default: $this->SendC("nothing"); } $this->SendRETURN(); }