예제 #1
0
파일: GMS.cs 프로젝트: paulorades/externals
        /// <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");
            }
        }
예제 #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");
        }