private void ParseClient(string[] pArgs) { if (pArgs.Length != 4) { Lib.Exit("Invalid Arg(s)!"); } Clients.Add(pArgs[1], new Client(pArgs[2])); var pcsFrontend = new PupFrontendPCS(GetPCSURL(pArgs[2])); _ = pcsFrontend.NewClientAsync(pArgs[1], pArgs[2], pArgs[3]); }
private void CheckServerCreation() { if (sCreated) { return; } foreach (var s in Servs) { var pcsFrontend = new PupFrontendPCS(GetPCSURL(s.Value.URL)); _ = pcsFrontend.NewServerAsync(s.Key, s.Value.URL, s.Value.MinDelay, s.Value.MaxDelay); } sCreated = true; }