Exemplo n.º 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();
        }
Exemplo n.º 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();
        }