12345678910111213141516171819202122232425 |
- 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 Socket OuterSocket;
- public Socket InnerSocket;
- public EndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 0);
- public byte[] Cache = new byte[1500];
- public Dictionary<uint, RouterNode> ConnectIdNodes = new Dictionary<uint, RouterNode>();
-
- public Dictionary<uint, RouterNode> OuterNodes = new Dictionary<uint, RouterNode>();
- public long LastCheckTime = 0;
- }
- }
|