1 Star 5 Fork 0

augushong/workerman-dht-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
log.php 377 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
require_once __DIR__.'/autoload.php';
use workerman\Worker;
use common\Log;
$log = new Worker('udp://0.0.0.0:6666');
$log->onMessage = function($connection,$data){
$msg = "send ip is {$connection->getRemoteIp()},port is {$connection->getRemotePort()}";
Log::$config['path'] = 'llogs/';
Log::record($msg);
// $connection->send($msg);
};
Worker::runAll();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/augushong/workerman-dht-server.git
git@gitee.com:augushong/workerman-dht-server.git
augushong
workerman-dht-server
workerman-dht-server
master

搜索帮助