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

23 lines
585 B
C#

using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
namespace ET.Server
{
[ComponentOf(typeof(Scene))]
public class RouterComponent: Entity, IAwake<IPEndPoint, string>, IDestroy, IUpdate
{
public IKcpTransport OuterUdp;
public IKcpTransport OuterTcp;
public IKcpTransport InnerSocket;
public EndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 0);
public byte[] Cache = new byte[1500];
public Queue<uint> checkTimeout = new();
public long LastCheckTime = 0;
}
}