private static void PrintUPSClients(UPS ups) { UPSDClient client = new UPSDClient(ups.Host); try { client.Connect(); List <string> clients = client.ListUPSClient(ups.Name); foreach (string upsClient in clients) { Console.WriteLine(upsClient); } } catch (SocketException sockex) { Console.WriteLine("Error: " + sockex.Message); } catch (UPSException upsex) { Console.WriteLine("Error: " + upsex.Description); } finally { client.Disconnect(); } }