2025-07-17 18:26:28 +08:00

44 lines
948 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Net;
namespace ET.Server
{
public enum RouterStatus
{
Sync,
Msg,
}
[ChildOf(typeof(RouterComponent))]
public class RouterNode: Entity, IDestroy, IAwake
{
public string InnerAddress;
public IPEndPoint InnerIpEndPoint;
public IPEndPoint OuterIpEndPoint;
public IPEndPoint SyncIpEndPoint;
public IKcpTransport KcpTransport;
public uint OuterConn
{
get
{
return (uint)this.Id;
}
}
public uint InnerConn;
public uint ConnectId;
public long LastRecvOuterTime;
public long LastRecvInnerTime;
public int RouterSyncCount;
public int SyncCount;
#region 50
public long LastCheckTime;
public int LimitCountPerSecond;
#endregion
public RouterStatus Status;
}
}