mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
提交网络模块TCP 超时重连机制
提交网络模块TCP 超时重连机制
This commit is contained in:
42
TEngineHotUpdate/src/TEngineCore/Net/DataCenterSys.cs
Normal file
42
TEngineHotUpdate/src/TEngineCore/Net/DataCenterSys.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TEngineCore.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据中心系统
|
||||
/// </summary>
|
||||
public class DataCenterSys : BaseLogicSys<DataCenterSys>
|
||||
{
|
||||
private List<IDataCenterModule> m_listModule = new List<IDataCenterModule>();
|
||||
|
||||
public override bool OnInit()
|
||||
{
|
||||
RegCmdHandle();
|
||||
InitModule();
|
||||
return true;
|
||||
}
|
||||
|
||||
private void RegCmdHandle()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void InitModule()
|
||||
{
|
||||
//InitModule(LoginDataMgr.Instance);
|
||||
}
|
||||
|
||||
public void InitModule(IDataCenterModule module)
|
||||
{
|
||||
if (!m_listModule.Contains(module))
|
||||
{
|
||||
module.Init();
|
||||
m_listModule.Add(module);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user