mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
36 lines
803 B
C#
36 lines
803 B
C#
using System.Net;
|
||
|
||
namespace ET.Server
|
||
{
|
||
public enum RouterStatus
|
||
{
|
||
Sync,
|
||
Msg,
|
||
}
|
||
|
||
[ChildOf(typeof(RouterComponent))]
|
||
public class RouterNode: Entity, IDestroy, IAwake
|
||
{
|
||
public uint ConnectId;
|
||
public string InnerAddress;
|
||
public IPEndPoint InnerIpEndPoint;
|
||
public IPEndPoint OuterIpEndPoint;
|
||
public IPEndPoint SyncIpEndPoint;
|
||
public uint OuterConn;
|
||
public uint InnerConn;
|
||
public long LastRecvOuterTime;
|
||
public long LastRecvInnerTime;
|
||
|
||
public int RouterSyncCount;
|
||
public int SyncCount;
|
||
|
||
#region 限制外网消息数量,一秒最多50个包
|
||
|
||
public long LastCheckTime;
|
||
public int LimitCountPerSecond;
|
||
|
||
#endregion
|
||
|
||
public RouterStatus Status;
|
||
}
|
||
} |