Exemplo n.º 1
0
        //----------------------Send throughput of the server--------------------------//
        public void sendServerThroughput(double srvrThroughput)
        {
            if (proxyStore.ContainsKey(remoteUrl))
            {
                proxyStore[remoteUrl].getThroughputServer(srvrThroughput);
            }
            else
            {
                // create new proxy with Connect, save it, and use it

                if (this.Connect(remoteUrl))            // if Connect succeeds it will set proxy and send start msg
                {
                    proxyStore[remoteUrl] = this.proxy; // save proxy
                    proxy.getThroughputServer(srvrThroughput);
                }
            }
        }