Menu

[r255]: / trunk / php-java-bridge / tests.php4 / multicast.php  Maximize  Restore  History

Download this file

20 lines (14 with data), 385 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/usr/bin/php
# start 3 backends with:
# modules/RunJavaBridge INET:0 5 ""
# * test upper bound at 12 (start more than 36 clients)
# * test if load balancer spreads the requests
<?php
if(!extension_loaded('java')) {
dl('java.' . PHP_SHLIB_SUFFIX);
}
echo "Starting client.\n";
$Thread = new java_class("java.lang.Thread");
$Thread->sleep(10000);
echo "client terminated\n";
?>