public string Exec() { PcsManager pcs = PcsPool.GetByUrl(pcsUrl); string serverURLs; bool result; if (ServerList.Servers.Count > 0) { serverURLs = String.Join(",", ServerList.Servers); result = pcs.StartServer(pid, serverUrl, msecPerRound, numPlayers, serverURLs); } else { result = pcs.StartServer(pid, serverUrl, msecPerRound, numPlayers, null); } if (result == true) { ServerList.AddServer(serverUrl); PcsPool.LinkPid(pid, pcsUrl); return(String.Empty); } else { return("Error - process not started"); } }
public string Exec() { PcsManager pcs = PcsPool.GetByUrl(pcsUrl); string serverURLs = String.Join(",", ServerList.Servers); bool result = pcs.StartClient(pid, clientUrl, msecPerRound, numPlayers, filename, serverURLs); if (result == true) { PcsPool.LinkPid(pid, pcsUrl); return(String.Empty); } else { return("Error - process not started"); } }