Ejemplo n.º 1
0
        /// <summary>
        /// Sets the GMS implementation to a client
        /// </summary>
        public void becomeClient()
        {
            ClientGmsImpl tmp = (ClientGmsImpl)impls[CLIENT];

            if (tmp == null)
            {
                tmp = new ClientGmsImpl(this);
                impls.Add(CLIENT, tmp);
            }
            tmp.initial_mbrs.Clear();
            setImpl(tmp);
            if (Trace.trace)
            {
                Trace.info("GMS.becomeClient", local_addr + " became client");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the GMS implementation to a client
        /// </summary>
        public void becomeClient()
        {
            ClientGmsImpl tmp=(ClientGmsImpl)impls[CLIENT];

            if(tmp == null)
            {
                tmp=new ClientGmsImpl(this);
                impls.Add(CLIENT, tmp);
            }
            tmp.initial_mbrs.Clear();
            setImpl(tmp);
            if(Trace.trace) Trace.info("GMS.becomeClient", local_addr + " became client");
        }