/* Sog 游戏基础库 2016 by zouwei */ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Sog; namespace Gate { // GateServer用,客户端连接数据 public class ClientServiceData : IServerDataObj { public SessionListener m_socketListener; public SessionSettings m_socketSetting; public IProtoPacker m_protoPacker; //private uint m_clientSessionID = 0; public UdpListener m_udpListener; public WebSessionListener m_webSessionListener; //等待服务器回应的连接 public Dictionary m_clientsDict; //等待后端服务器ack public Dictionary m_waitServerAckDict; //等待客户端公钥请求 public Dictionary m_waitClientPublicKeyDict; public List m_needCloseClients; public long m_lastCheckTimeoutTime = 0; public bool IsClientSessionID(long sessionID) { return m_clientsDict.ContainsKey(sessionID); } public ClientServiceData() { m_clientsDict = new Dictionary(); m_waitServerAckDict = new Dictionary(); m_waitClientPublicKeyDict = new Dictionary(); m_needCloseClients = new List(); m_protoPacker = new SProtoPacker(); } public override int GetDataType() { return GateDataObjType.ClientServiceData; } } }