示例#1
0
        public Cloud(string configName, int port)
        {
            NetPeerConfiguration config = new NetPeerConfiguration(configName);
            config.EnableMessageType(NetIncomingMessageType.DiscoveryRequest);
            config.Port = port;
            config.NetworkThreadName = "Cloud server thread";
            this.server = new NetServer(config);

            cloudGC = new CloudGameController();

            Thread thread = new Thread(new ThreadStart(cloudGC.run));
            thread.Name = "Game Controller thread";
            thread.Start();
        }
示例#2
0
        public Cloud(string configName, int port)
        {
            NetPeerConfiguration config = new NetPeerConfiguration(configName);

            config.EnableMessageType(NetIncomingMessageType.DiscoveryRequest);
            config.Port = port;
            config.NetworkThreadName = "Cloud server thread";
            this.server = new NetServer(config);


            cloudGC = new CloudGameController();

            Thread thread = new Thread(new ThreadStart(cloudGC.run));

            thread.Name = "Game Controller thread";
            thread.Start();
        }