Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
timchen1002
UnityToLuaFramework
提交
5c6daaa8
U
UnityToLuaFramework
项目概览
timchen1002
/
UnityToLuaFramework
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
UnityToLuaFramework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5c6daaa8
编写于
8月 19, 2021
作者:
timchen1002
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update socket server
上级
10bb1193
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
325 addition
and
0 deletion
+325
-0
WebServer/HotUpdateServer/res_1.0.0.1.zip
WebServer/HotUpdateServer/res_1.0.0.1.zip
+0
-0
WebServer/HotUpdateServer/res_1.0.0.2.zip
WebServer/HotUpdateServer/res_1.0.0.2.zip
+0
-0
WebServer/HotUpdateServer/res_1.0.0.3.zip
WebServer/HotUpdateServer/res_1.0.0.3.zip
+0
-0
WebServer/HotUpdateServer/update_list.json
WebServer/HotUpdateServer/update_list.json
+0
-0
WebServer/LogServer/update/output_20210819021430.log
WebServer/LogServer/update/output_20210819021430.log
+0
-0
WebServer/LogServer/update/output_20210819021534.log
WebServer/LogServer/update/output_20210819021534.log
+0
-0
WebServer/LogServer/update/output_20210819021812.log
WebServer/LogServer/update/output_20210819021812.log
+0
-0
WebServer/LogServer/update/output_20210819031340.log
WebServer/LogServer/update/output_20210819031340.log
+0
-0
WebServer/LogServer/update/output_20210819043317.log
WebServer/LogServer/update/output_20210819043317.log
+0
-0
WebServer/LogServer/update/output_20210819045048.log
WebServer/LogServer/update/output_20210819045048.log
+275
-0
WebServer/LogServer/upload_log.php
WebServer/LogServer/upload_log.php
+0
-0
WebServer/SocketServer/game_server.py
WebServer/SocketServer/game_server.py
+50
-0
未找到文件。
WebServer/res_1.0.0.1.zip
→
WebServer/
HotUpdateServer/
res_1.0.0.1.zip
浏览文件 @
5c6daaa8
文件已移动
WebServer/res_1.0.0.2.zip
→
WebServer/
HotUpdateServer/
res_1.0.0.2.zip
浏览文件 @
5c6daaa8
文件已移动
WebServer/res_1.0.0.3.zip
→
WebServer/
HotUpdateServer/
res_1.0.0.3.zip
浏览文件 @
5c6daaa8
文件已移动
WebServer/update_list.json
→
WebServer/
HotUpdateServer/
update_list.json
浏览文件 @
5c6daaa8
文件已移动
WebServer/update/output_20210819021430.log
→
WebServer/
LogServer/
update/output_20210819021430.log
浏览文件 @
5c6daaa8
文件已移动
WebServer/update/output_20210819021534.log
→
WebServer/
LogServer/
update/output_20210819021534.log
浏览文件 @
5c6daaa8
文件已移动
WebServer/update/output_20210819021812.log
→
WebServer/
LogServer/
update/output_20210819021812.log
浏览文件 @
5c6daaa8
文件已移动
WebServer/update/output_20210819031340.log
→
WebServer/
LogServer/
update/output_20210819031340.log
浏览文件 @
5c6daaa8
文件已移动
WebServer/update/output_20210819043317.log
→
WebServer/
LogServer/
update/output_20210819043317.log
浏览文件 @
5c6daaa8
文件已移动
WebServer/LogServer/update/output_20210819045048.log
0 → 100644
浏览文件 @
5c6daaa8
appVersion = 1.0.0.0, resVersion = 1.0.0.3
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
VersionMgr:Init () (at Assets/Scripts/Logic/Version/VersionMgr.cs:50)
Main:Awake () (at Assets/LuaFramework/Scripts/Main.cs:12)
[
{
"appVersion": "1.0.0.0",
"appUrl": "",
"updateList":
[
{
"resVersion": "1.0.0.3",
"md5": "CA141DAE762F6A37E5E1C8DEF60C7D43",
"size": 905968,
"url": "http://localhost:18800/res_1.0.0.3.zip"
},
{
"resVersion": "1.0.0.2",
"md5": "1C884130CB2692910D0AC929169E7819",
"size": 1793797,
"url": "http://localhost:18800/res_1.0.0.2.zip"
},
{
"resVersion": "1.0.0.1",
"md5": "345813BEAF105082CDD410D92C3C7D2B",
"size": 897986,
"url": "http://localhost:18800/res_1.0.0.1.zip"
}
]
}
]
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
HotUpdater:ReqUpdateInfo () (at Assets/Scripts/Logic/Update/HotUpdater.cs:143)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:93)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
mPackageList.Count = 0
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
HotUpdater:CalculateUpdatePackageList (System.Collections.Generic.List`1<HotUpdater/UpdateInfo>) (at Assets/Scripts/Logic/Update/HotUpdater.cs:191)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:99)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
AfterHotUpdate
UnityEngine.Debug:Log (object)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:31)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
16:50:49.161-1: Init lua state cost: 0.0919342
UnityEngine.Debug:Log (object)
LuaInterface.Debugger:Log (string)
LuaInterface.Debugger:Log (string,object)
LuaInterface.LuaState:.ctor () (at Assets/LuaFramework/ToLua/Core/LuaState.cs:122)
LuaFramework.LuaManager:Awake () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:14)
UnityEngine.GameObject:AddComponent<LuaFramework.LuaManager> ()
Facade:AddManager<LuaFramework.LuaManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:39)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
16:50:49.380-1: Register lua type cost time: 0.2103333
UnityEngine.Debug:Log (object)
LuaInterface.Debugger:Log (string)
LuaInterface.Debugger:Log (string,object)
LuaBinder:Bind (LuaInterface.LuaState) (at Assets/LuaFramework/ToLua/Source/Generate/LuaBinder.cs:142)
LuaFramework.LuaManager:Awake () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:18)
UnityEngine.GameObject:AddComponent<LuaFramework.LuaManager> ()
Facade:AddManager<LuaFramework.LuaManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:39)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
16:50:49.392-1: LuaState start
UnityEngine.Debug:Log (object)
LuaInterface.Debugger:Log (string)
LuaInterface.LuaState:Start () (at Assets/LuaFramework/ToLua/Core/LuaState.cs:222)
LuaFramework.LuaManager:InitStart () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:26)
LuaFramework.GameManager:OnInitialize () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:38)
LuaFramework.GameManager:Init () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:33)
LuaFramework.GameManager:Awake () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:21)
UnityEngine.GameObject:AddComponent<LuaFramework.GameManager> ()
Facade:AddManager<LuaFramework.GameManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:41)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
16:50:49.400-1: [tolua.lua:11]:ver20100 jit: true SSE2 SSE3 SSE4.1 BMI2 fold cse dce fwd dse narrow loop abc sink fuse
UnityEngine.Debug:Log (object)
LuaInterface.Debugger:Log (string)
LuaInterface.ToLua:Print (intptr) (at Assets/LuaFramework/ToLua/Core/ToLua.cs:201)
LuaInterface.LuaStatePtr:LuaPCall (int,int,int) (at Assets/LuaFramework/ToLua/Core/LuaStatePtr.cs:374)
LuaInterface.LuaState:LuaLoadBuffer (byte[],string) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:2175)
LuaInterface.LuaState:DoFile (string) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:645)
LuaInterface.LuaState:OpenBaseLuaLibs () (at Assets/LuaFramework/ToLua/Core/LuaState.cs:213)
LuaInterface.LuaState:Start () (at Assets/LuaFramework/ToLua/Core/LuaState.cs:223)
LuaFramework.LuaManager:InitStart () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:26)
LuaFramework.GameManager:OnInitialize () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:38)
LuaFramework.GameManager:Init () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:33)
LuaFramework.GameManager:Awake () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:21)
UnityEngine.GameObject:AddComponent<LuaFramework.GameManager> ()
Facade:AddManager<LuaFramework.GameManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:41)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
16:50:49.402-1: [tolua.lua:12]:os: Windows, arch: x64
UnityEngine.Debug:Log (object)
LuaInterface.Debugger:Log (string)
LuaInterface.ToLua:Print (intptr) (at Assets/LuaFramework/ToLua/Core/ToLua.cs:201)
LuaInterface.LuaStatePtr:LuaPCall (int,int,int) (at Assets/LuaFramework/ToLua/Core/LuaStatePtr.cs:374)
LuaInterface.LuaState:LuaLoadBuffer (byte[],string) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:2175)
LuaInterface.LuaState:DoFile (string) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:645)
LuaInterface.LuaState:OpenBaseLuaLibs () (at Assets/LuaFramework/ToLua/Core/LuaState.cs:213)
LuaInterface.LuaState:Start () (at Assets/LuaFramework/ToLua/Core/LuaState.cs:223)
LuaFramework.LuaManager:InitStart () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:26)
LuaFramework.GameManager:OnInitialize () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:38)
LuaFramework.GameManager:Init () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:33)
LuaFramework.GameManager:Awake () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:21)
UnityEngine.GameObject:AddComponent<LuaFramework.GameManager> ()
Facade:AddManager<LuaFramework.GameManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:41)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
16:50:49.442-1: [Main.lua:3]:logic start
UnityEngine.Debug:Log (object)
LuaInterface.Debugger:Log (string)
LuaInterface.ToLua:Print (intptr) (at Assets/LuaFramework/ToLua/Core/ToLua.cs:201)
LuaInterface.LuaState:PCall (int,int) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:756)
LuaInterface.LuaFunction:PCall () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:96)
LuaInterface.LuaFunction:Call () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:120)
LuaFramework.LuaManager:StartMain () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:50)
LuaFramework.LuaManager:InitStart () (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:27)
LuaFramework.GameManager:OnInitialize () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:38)
LuaFramework.GameManager:Init () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:33)
LuaFramework.GameManager:Awake () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:21)
UnityEngine.GameObject:AddComponent<LuaFramework.GameManager> ()
Facade:AddManager<LuaFramework.GameManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:41)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
Network.Start!!
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
GameLogger:LogWarning (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:27)
GameLoggerWrap:LogWarning (intptr) (at Assets/LuaFramework/ToLua/Source/Generate/GameLoggerWrap.cs:163)
LuaInterface.LuaState:PCall (int,int) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:756)
LuaInterface.LuaFunction:PCall () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:96)
LuaInterface.LuaFunction:LazyCall (object[]) (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:381)
LuaFramework.LuaManager:CallFunction (string,object[]) (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:96)
LuaFramework.Util:CallMethod (string,string,object[]) (at Assets/LuaFramework/Scripts/Utility/Util.cs:273)
LuaFramework.NetworkManager:CallMethod (string,object[]) (at Assets/LuaFramework/Scripts/Manager/NetworkManager.cs:41)
LuaFramework.NetworkManager:OnInit () (at Assets/LuaFramework/Scripts/Manager/NetworkManager.cs:30)
LuaFramework.GameManager:OnInitialize () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:41)
LuaFramework.GameManager:Init () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:33)
LuaFramework.GameManager:Awake () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:21)
UnityEngine.GameObject:AddComponent<LuaFramework.GameManager> ()
Facade:AddManager<LuaFramework.GameManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:41)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
Game.OnInitOK--->>>
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
GameLoggerWrap:Log (intptr) (at Assets/LuaFramework/ToLua/Source/Generate/GameLoggerWrap.cs:70)
LuaInterface.LuaState:PCall (int,int) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:756)
LuaInterface.LuaFunction:PCall () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:96)
LuaInterface.LuaFunction:LazyCall (object[]) (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:381)
LuaFramework.LuaManager:CallFunction (string,object[]) (at Assets/LuaFramework/Scripts/Manager/LuaManager.cs:96)
LuaFramework.Util:CallMethod (string,string,object[]) (at Assets/LuaFramework/Scripts/Utility/Util.cs:273)
LuaFramework.GameManager:OnInitialize () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:42)
LuaFramework.GameManager:Init () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:33)
LuaFramework.GameManager:Awake () (at Assets/LuaFramework/Scripts/Manager/GameManager.cs:21)
UnityEngine.GameObject:AddComponent<LuaFramework.GameManager> ()
Facade:AddManager<LuaFramework.GameManager> (string) (at Assets/LuaFramework/Scripts/Framework/Core/Facade.cs:87)
AppFacade:StartUp () (at Assets/LuaFramework/Scripts/Framework/AppFacade.cs:41)
Main:AfterHotUpdate () (at Assets/LuaFramework/Scripts/Main.cs:38)
Main:<Awake>b__0_0 () (at Assets/LuaFramework/Scripts/Main.cs:22)
UpdatePanel:Finish () (at Assets/Scripts/View/UpdatePanel.cs:156)
UpdatePanel:NothingToUpdate () (at Assets/Scripts/View/UpdatePanel.cs:130)
HotUpdater:Start () (at Assets/Scripts/Logic/Update/HotUpdater.cs:123)
UpdatePanel:Start () (at Assets/Scripts/View/UpdatePanel.cs:68)
日志上传完毕, 服务器返回信息: 文件上传成功
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
LogUploader/<UploadLog>d__1:MoveNext () (at Assets/Scripts/Logic/Log/LogUploader.cs:40)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
打印一行日志
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
GameLoggerWrap:Log (intptr) (at Assets/LuaFramework/ToLua/Source/Generate/GameLoggerWrap.cs:70)
LuaInterface.LuaState:PCall (int,int) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:756)
LuaInterface.LuaFunction:PCall () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:96)
LuaInterface.LuaFunction:Call () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:120)
DelegateFactory/System_Action_Event:Call () (at Assets/LuaFramework/ToLua/Source/Generate/DelegateFactory.cs:217)
PrefabObjBinder/<>c__DisplayClass5_0:<SetBtnClick>b__0 () (at Assets/Scripts/Logic/Prefab/PrefabObjBinder.cs:52)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)
打印一行日志
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
GameLoggerWrap:Log (intptr) (at Assets/LuaFramework/ToLua/Source/Generate/GameLoggerWrap.cs:70)
LuaInterface.LuaState:PCall (int,int) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:756)
LuaInterface.LuaFunction:PCall () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:96)
LuaInterface.LuaFunction:Call () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:120)
DelegateFactory/System_Action_Event:Call () (at Assets/LuaFramework/ToLua/Source/Generate/DelegateFactory.cs:217)
PrefabObjBinder/<>c__DisplayClass5_0:<SetBtnClick>b__0 () (at Assets/Scripts/Logic/Prefab/PrefabObjBinder.cs:52)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)
打印一行日志
UnityEngine.Debug:Log (object,UnityEngine.Object)
GameLogger:Log (object,UnityEngine.Object) (at Assets/Scripts/Logic/Log/GameLogger.cs:14)
GameLoggerWrap:Log (intptr) (at Assets/LuaFramework/ToLua/Source/Generate/GameLoggerWrap.cs:70)
LuaInterface.LuaState:PCall (int,int) (at Assets/LuaFramework/ToLua/Core/LuaState.cs:756)
LuaInterface.LuaFunction:PCall () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:96)
LuaInterface.LuaFunction:Call () (at Assets/LuaFramework/ToLua/Core/LuaFunction.cs:120)
DelegateFactory/System_Action_Event:Call () (at Assets/LuaFramework/ToLua/Source/Generate/DelegateFactory.cs:217)
PrefabObjBinder/<>c__DisplayClass5_0:<SetBtnClick>b__0 () (at Assets/Scripts/Logic/Prefab/PrefabObjBinder.cs:52)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)
WebServer/upload_log.php
→
WebServer/
LogServer/
upload_log.php
浏览文件 @
5c6daaa8
文件已移动
WebServer/SocketServer/game_server.py
0 → 100644
浏览文件 @
5c6daaa8
import
socket
from
threading
import
Thread
import
time
import
json
ADDRESS
=
(
'127.0.0.1'
,
18800
)
socket_server
=
None
connect_pool
=
{}
def
accept_client
():
global
socket_server
# 初始化socket
socket_server
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
# 绑定地址
socket_server
.
bind
(
ADDRESS
)
# 最大等待数
socket_server
.
listen
(
5
)
print
(
"server start, wait for client connecting..."
)
# 接收新连接
while
True
:
# 阻塞,等待客户端连接
client
,
info
=
socket_server
.
accept
()
# 给每个客户端创建一个独立的线程进行管理
thread
=
Thread
(
target
=
message_handle
,
args
=
(
client
,
info
))
thread
.
setDaemon
(
True
)
thread
.
start
()
# 消息处理
def
message_handle
(
client
,
info
):
handle_id
=
info
[
1
]
# 缓存客户端socket对象
connect_pool
[
handle_id
]
=
client
while
True
:
try
:
data
=
client
.
except
Exception
as
e
:
break
def
remove_client
(
handle_id
):
if
__name__
==
'__main__'
# 新开一个线程,用于接收新连接
thread
=
Thread
(
target
=
accept_client
)
thread
.
setDaemon
(
True
)
thread
.
start
()
# 主线程逻辑
while
True
:
time
.
sleep
(
0.1
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录