Beispiel #1
0
        public static void cmdStartClient(string pid, string pcs_url, string client_url, int msec_per_round, int num_players, string path, int src)
        {
            pidToUrl.Add(pid, client_url);
            activeClient.Add(client_url);

            printPM("Starting Client", src);
            printPM("Checking for PCS", src);

            remote = checkPCS(pcs_url);
            //Console.WriteLine(pcs_url);

            remote.createReplica(pid, pcs_url, client_url, msec_per_round, num_players, 1, path);
        }
Beispiel #2
0
        public static void cmdStartServer(string pid, string pcs_url, string server_url, int msec_per_round, int num_players, int src)
        {
            pidToUrl.Add(pid, server_url);
            activeServer.Add(server_url);

            printPM("Starting Server", src);
            printPM("Checking for PCS", src);

            remote = checkPCS(pcs_url);
            //Console.WriteLine(pcs_url);

            setServerPort(server_url);

            remote.createReplica(pid, pcs_url, server_url, msec_per_round, num_players, 0, "");
        }