You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
546 B

#!/usr/bin/env php
<?PHP
/*
* @Descripttion:
* @version:
* @Author: Blobt
* @Date: 2020-07-30 09:48:18
* @LastEditors: Blobt
* @LastEditTime: 2020-07-30 14:20:19
*/
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 = $argv[1];
$server->run();
?>