コード例 #1
0
        static void Main(string[] args)
        {
            string       input  = "hello";
            SecureClient client = null;

            try
            {
                client = new SecureClient();
                if (args.Length > 1)
                {
                    client.url = args[0];
                    input      = args[1];
                    client.Run(input);
                }
                else
                {
                    Console.WriteLine("Usage: SecClient.exe [url] [input string]");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
            Console.WriteLine("");
        }
コード例 #2
0
      static void Main (string[] args) 
	{
	  string input = "hello";
	  SecureClient client = null;
	  try 
	    {
	      client = new SecureClient ();
	      if (args.Length > 1)
		{
		  client.url = args[0]; 
		  input = args[1];
		  client.Run (input);
		}
	      else
		{
		  Console.WriteLine ("Usage: SecClient.exe [url] [input string]");
		}
	    } 
	  catch (Exception ex) 
	    {
	      Console.WriteLine (ex);
	    } 
	  Console.WriteLine ("");
	}