internal void RequestServer(MessageSession session, RequestServerMsg msg) { _serverMapLock.DoRead(() => { var response = new ServersMsg(); response.ServerList.AddRange(_serverMap.Values); session.Send(response); Logger.Write("Response To: {0} -> {1}", session.ClientSocket.RemoteEndPoint, _serverMap.Count); }); }
private void ProcessServersMsg(ServersMsg msg) { ClientLauncher.Instance.Servers = msg.ServerList; UpdateServerList(); }