Example #1
0
        public static int Main(string[] args)
        {
            string host = args.Length > 0 ? args[0] : "127.0.0.1";

            SslTcpClient.RunClient(host);
            return(0);
        }
Example #2
0
        public static int Main(string[] args)
        {
            string serverCertificateName = "HP-Envy-Ruben";
            string machineName           = "HP-Envy-Ruben";

            SslTcpClient.RunClient(machineName, serverCertificateName);
            return(0);
        }
Example #3
0
        public static int Main(string[] args)
        {
            string serverCertificateName = null;
            string machineName           = null;

            // User can specify the machine name and server name.
            // Server name must match the name on the server's certificate.
            machineName           = "127.0.0.1";
            serverCertificateName = "GameDbCache Server";
            SslTcpClient.RunClient(machineName, serverCertificateName);
            return(0);
        }
Example #4
0
        public static int Main(string[] args)
        {
            string serverCertificateName = null;
            string machineName           = null;

            if (args == null || args.Length < 1)
            {
                DisplayUsage();
            }
            // User can specify the machine name and server name.
            // Server name must match the name on the server's certificate.
            machineName = args[0];
            if (args.Length < 2)
            {
                serverCertificateName = machineName;
            }
            else
            {
                serverCertificateName = args[1];
            }
            SslTcpClient.RunClient(machineName, serverCertificateName);
            return(0);
        }
Example #5
0
        public static int Main(string[] args)
        {
            string serverCertificateName = "ASN1";
            string machineName           = "esspriff";

            /*if (args == null || args.Length < 1)
             * {
             *  DisplayUsage();
             * }*/
            // User can specify the machine name and server name.
            // Server name must match the name on the server's certificate.
            //machineName = args[0];

            /*if (args.Length < 2)
             * {
             *  serverCertificateName = machineName;
             * }
             * else
             * {
             *  serverCertificateName = args[1];
             * }*/
            SslTcpClient.RunClient(machineName, serverCertificateName);
            return(0);
        }