Exemple #1
0
        // processInfo is used to parse the info messages sent
        // from the server.
        internal void processInfo(string info)
        {
            if (info == null || IC._EMPTY_.Equals(info))
            {
                return;
            }

            this.info = new ServerInfo(info);
        }
Exemple #2
0
        // processInfo is used to parse the info messages sent
        // from the server.
        internal void processInfo(string json)
        {
            if (json == null || IC._EMPTY_.Equals(json))
            {
                return;
            }

            info = ServerInfo.CreateFromJson(json);
            if (srvPool.Add(info.connectURLs, true))
            {
                if (opts.NoRandomize == false)
                    srvPool.Shuffle();
            }
        }