Пример #1
0
        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);
                });
        }
Пример #2
0
 private void ProcessServersMsg(ServersMsg msg)
 {
     ClientLauncher.Instance.Servers = msg.ServerList;
     UpdateServerList();
 }