public CenterServerNet(ref CenterSeverData data, ref CenterManager s) { typenet = TypeNet.CenterSever; ip = IPAddress.Parse(data.ip.IP); point = new IPEndPoint(ip, data.ip.Point); centerManager = s; Data = data; }
} //条码扫描使用官方程序,知道名就可以 public CenterManager() { Data = new CenterSeverData(MaxIP); centerManager = this; loadxml(); iplist = new IPList[MaxIP]; UserList = new IPList[MaxIP]; for (int i = 0; i < MaxIP; i++) { iplist[i].ID = null; iplist[i].IP = null; } centerNetManager = new CenterServerNet(ref Data, ref centerManager); }