|
|
@ -13,9 +13,15 @@ include __DIR__."/../vendor/autoload.php"; |
|
|
|
|
|
|
|
use blobt\airpc\RpcServer; |
|
|
|
|
|
|
|
if(!isset($argv[1])) |
|
|
|
die("Error: {$argv[0]} {your enter point}.\n"); |
|
|
|
|
|
|
|
if(!file_exists($argv[1])) |
|
|
|
die("Error: enter point {$argv[1]} not found.\n"); |
|
|
|
|
|
|
|
$server = new RpcServer("0.0.0.0", 5188); |
|
|
|
$server->reactorNum = 1; |
|
|
|
$server->workerNum = 1; |
|
|
|
$server->entryPoint = '/home/blobt/Documents/dev/php/yii2-app-rpc/rpc/index.php'; |
|
|
|
$server->entryPoint = $argv[1]; |
|
|
|
$server->run(); |
|
|
|
?> |