Beispiel #1
0
        public void ConnectToExistingMaster(IOnlineConnection NewMaster)
        {
            SharedWriteBuffer.ClearWriteBuffer();
            SharedWriteBuffer.WriteScript(new MasterAddedScriptServer(NewMaster.IP));

            foreach (IOnlineConnection ActiveMaster in ListOtherMaster)
            {
                ActiveMaster.SendWriteBuffer();
            }

            NewMaster.Send(new MasterListScriptServer(ListOtherMaster));
            ListOtherMaster.Add(NewMaster);
        }
Beispiel #2
0
        public void ConnectToExistingServerManager(IOnlineConnection NewServerManager)
        {
            SharedWriteBuffer.ClearWriteBuffer();
            SharedWriteBuffer.WriteScript(new ServerManagerAddedScriptServer(NewServerManager.IP));

            foreach (IOnlineConnection ActiveMaster in ListOtherMaster)
            {
                ActiveMaster.SendWriteBuffer();
            }

            //Don't send idle masters
            NewServerManager.Send(new MasterListScriptServer(ListOtherMaster));
            ListServerManager.Add(new ServerManagerInfo(NewServerManager));
        }