Esempio n. 1
0
 public function __construct($tmpl = NULL)
 {
     parent::__construct($tmpl);
     $this->ConfigSetIgnoreExit(TRUE);
     $this->items = array();
     $this->fh = NULL;
 }
Esempio n. 2
0
 public function __construct()
 {
     $this->ConfigSetIgnoreExit(TRUE);
     $this->ConfigSetIdent("transFilter");
     $this->ConfigSetName('Filter4');
     $this->items = array();
     $this->fh = NULL;
     parent::__construct();
 }
Esempio n. 3
0
#:  \version    \$Rev$
#:  \author     EMail: aotto1968 at users.berlios.de
#:  \attention  this software has GPL permissions to copy
#:              please contact AUTHORS for additional information
#:
## setup the clients
$server = dirname($argv[0]) . "/testserver.php";
## create object
$c0 = new MqS();
$c00 = new MqS();
$c01 = new MqS();
$c000 = new MqS();
$c1 = new MqS();
$c10 = new MqS();
$c100 = new MqS();
$c101 = new MqS();
## setup object link
$c0->LinkCreate("c0", "--srvname", "s0", "--debug", getenv('TS_DEBUG'), "@", getenv('PHP'), "-c", getenv('PHPRC'), $server);
$c00->LinkCreateChild($c0, "c00", "--name", "c00", "--srvname", "s00");
$c01->LinkCreateChild($c0, "c01", "--name", "c01", "--srvname", "s01");
$c000->LinkCreateChild($c00, "c000", "--name", "c000", "--srvname", "s000");
$c1->LinkCreate("c1", "--srvname", "s1", array_slice($argv, 1));
$c10->LinkCreateChild($c1, "c10", "--name", "c10", "--srvname", "s10");
$c100->LinkCreateChild($c10, "c100", "--name", "c100", "--srvname", "s100");
$c101->LinkCreateChild($c10, "c101", "--name", "c101", "--srvname", "s101");
## my helper
function Get($ctx)
{
    $ret = "";
    $ctx->SendSTART();
    $ctx->SendEND_AND_WAIT("GTCX");
Esempio n. 4
0
 public function __construct()
 {
     $this->ConfigSetName('filter');
     $this->data = array();
     parent::__construct();
 }
Esempio n. 5
0
 public function INITX()
 {
     $this->SendSTART();
     $list = array();
     while ($this->ReadItemExists()) {
         $list[] = $this->ReadC();
     }
     MqS::Init($list);
     $this->SendRETURN();
 }
Esempio n. 6
0
 public function __construct($tmpl = NULL)
 {
     parent::__construct($tmpl);
     $this->data = array();
 }
Esempio n. 7
0
<?php

#+
#§  \file       theLink/example/php/mulclient.php
#§  \brief      \$Id$
#§
#§  (C) 2010 - NHI - #1 - Project - Group
#§
#§  \version    \$Rev$
#§  \author     EMail: aotto1968 at users.berlios.de
#§  \attention  this software has GPL permissions to copy
#§              please contact AUTHORS for additional information
#§
$srv = new MqS();
try {
    $srv->ConfigSetName("MyMul");
    $srv->LinkCreate($argv);
    $srv->SendSTART();
    $srv->SendD(3.67);
    $srv->SendD(22.3);
    $srv->SendEND_AND_WAIT("MMUL");
    print $srv->ReadD();
} catch (Exception $ex) {
    $srv->ErrorSet($ex);
}
$srv->Exit();
Esempio n. 8
0
 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();
 }
Esempio n. 9
0
<?php

#+
#:  \file       theLink/example/php/MyClient.php
#:  \brief      \$Id$
#:
#:  (C) 2010 - NHI - #1 - Project - Group
#:
#:  \version    \$Rev$
#:  \author     EMail: aotto1968 at users.berlios.de
#:  \attention  this software has GPL permissions to copy
#:              please contact AUTHORS for additional information
#:
$srv = new MqS();
try {
    $srv->ConfigSetName("MyClient");
    $srv->LinkCreate($argv);
    $srv->SendSTART();
    $srv->SendEND_AND_WAIT("HLWO");
    print $srv->ReadC();
} catch (Exception $ex) {
    $srv->ErrorSet($ex);
}
$srv->Exit();
Esempio n. 10
0
 public function __construct($tmpl = NULL)
 {
     parent::__construct($tmpl);
     $this->ConfigSetName('filter');
     $this->data = array();
 }