1 Star 0 Fork 1

庵中十三居士/cephalopod-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cephalopod-server.php 792 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
/*
php cephalopod-server.php --listen-ip-address=127.0.0.1 --listen-port=9002
*/
require_once __DIR__ . '/vendor/autoload.php';
$options = getopt('', [
'no-color::',
'listen-ip-address::',
'listen-port::',
]);
Cephalopod\LogRecorder::setEnableColor(!isset($options['no-color']));
$listenIpAddress = $options['listen-ip-address'] ?? '127.0.0.1';
$listenPort = $options['listen-port'] ?? 9002;
echo "listen ip,listen port:$listenIpAddress,$listenPort" . PHP_EOL;
$client = new Cephalopod\SSL\Server();
$client->setListenIpAddress($listenIpAddress);
$client->setListenPort($listenPort);
$client->setClientPublicKey(__DIR__ . '/etc/cephalopod/remote/local_public.pem');
$client->setServerPrivateKey(__DIR__ . '/etc/cephalopod/remote/remote_private.pem');
$client->run();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/az13js/cephalopod-app.git
git@gitee.com:az13js/cephalopod-app.git
az13js
cephalopod-app
cephalopod-app
main

搜索帮助

D67c1975 1850385 1daf7b77 1850385