{ return new TestServer(); } public function ServerSetup() { $this->ServiceCreate('GTCX', array(&$this, 'GTCX')); } public function GTCX() { $this->SendSTART(); $this->SendI($this->LinkGetCtxId()); $this->SendC("+"); if ($this->LinkIsParent()) { $this->SendI(-1); } else { $this->SendI($this->LinkGetParent()->LinkGetCtxId()); } $this->SendC("+"); $this->SendC($this->ConfigGetName()); $this->SendC(":"); $this->SendRETURN(); } } $srv = new TestServer(); try { $srv->LinkCreate($argv); $srv->ProcessEvent(MqS::WAIT_FOREVER); } catch (Exception $ex) { $srv->ErrorSet($ex); } $srv->Exit();