X-Git-Url: http://git.pjr.cc/?p=pengine.git;a=blobdiff_plain;f=unittests%2Fcommrecv.php;h=9a364825cea49148d4c7883b1e99e00e1b35b110;hp=2061063b15cb292e5ab8a3ce1c5e7913ffab477c;hb=HEAD;hpb=1450d5020fd9be9193327ac035605d8aaef29714 diff --git a/unittests/commrecv.php b/unittests/commrecv.php index 2061063..9a36482 100644 --- a/unittests/commrecv.php +++ b/unittests/commrecv.php @@ -1,13 +1,16 @@ go(); -while(true) { - $mn->waitForSecureConnection(); - while(($msg = $mn->receiveMessage()) !== false) { - print_r($msg); - } +function myfunction($msg) +{ + echo "myfunction got a msg\n"; + print_r($msg); + echo "myfunction end message\n"; + $returnmsg["0"] = "asdf"; + + return $returnmsg; } +$mn = new netCom(true, "127.0.0.1", false); + +$pid = $mn->go("myfunction"); ?> \ No newline at end of file