RouterComponent.cs 585 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Net;
  4. using System.Net.Sockets;
  5. namespace ET.Server
  6. {
  7. [ComponentOf(typeof(Scene))]
  8. public class RouterComponent: Entity, IAwake<IPEndPoint, string>, IDestroy, IUpdate
  9. {
  10. public IKcpTransport OuterUdp;
  11. public IKcpTransport OuterTcp;
  12. public IKcpTransport InnerSocket;
  13. public EndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 0);
  14. public byte[] Cache = new byte[1500];
  15. public Queue<uint> checkTimeout = new();
  16. public long LastCheckTime = 0;
  17. }
  18. }