X-Git-Url: http://git.pjr.cc/?p=pengine.git;a=blobdiff_plain;f=unittests%2Fcommrecv.php;h=9a364825cea49148d4c7883b1e99e00e1b35b110;hp=16fea309f4b6d6f3cc2fbc924e3889d27f1ec835;hb=HEAD;hpb=527c1ed71988910d53837e504d5b1ba0b16888aa diff --git a/unittests/commrecv.php b/unittests/commrecv.php index 16fea30..9a36482 100644 --- a/unittests/commrecv.php +++ b/unittests/commrecv.php @@ -1,13 +1,16 @@ go(); -while(true) { - $mn->waitForConnection(); - 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