예제 #1
0
        public override bool check()
        {
            XmlRpcValue chk = new XmlRpcValue();

            bool res = client.IsConnected;

            if (res == false)
            {
                Console.WriteLine("DEAD MASTER DETECTED!");
            }
            else
            {
                res &= client.ExecuteCheckDone(chk);
            }
            if (client.ExecuteCheckDone(chk))
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
 public override bool check()
 {
     if (parent == null)
     {
         return(false);
     }
     if (client.ExecuteCheckDone(chk))
     {
         parent.pendingConnectionDone(this, chk);
         return(true);
     }
     return(false);
 }
예제 #3
0
 public bool ExecuteCheckDone(XmlRpcValue result)
 {
     lock (client_lock)
         return(client.ExecuteCheckDone(result));
 }