Example #1
0
 public GameServer(int Servercode)
 {
     this.Servercode = Servercode;
     ServerTime      = new Stopwatch();
     Playerno_Pool   = new RandomPool(1, 5);
     calculate.setCallback(cal);
     calculate.setInterval(10);
     calculate.Start();
 }
Example #2
0
        private MasterServer()
        {
            ServerCodePool = new RandomPool(1000, 9999);
            PORT           = 5252;
            PacketManager.init(1000);
            ServerList      = new List <GameServer>();
            socketConnecter = new SocketConnecter(PORT);
            socketConnecter.callback_connected += newClient;
            socketConnecter.Serverinit();

            Server_generate();
        }