Пример #1
0
        public Form1()
        {
            InitializeComponent();
            this.putty = loadPutty();
            sw         = new SecureProxy(putty);
            ps         = new ProxySetting();

            this.Disposed += new EventHandler(Form1_Disposed);

            //test();
        }
Пример #2
0
        private void test()
        {
            String      path = loadPutty();
            SecureProxy sw   = new SecureProxy(path);
            string      port = Convert.ToString(8080);

            sw.connect("", "", port);


            if (sw.portOpen(446))
            {
                Console.WriteLine("PORT IS OPEN");
            }
            else
            {
                Console.WriteLine("PORT IS CLOSED");
            }
        }
 public ConnectionChecker(Form1 form1)
 {
     this.sw    = form1.getSecureWifi();
     this.form1 = form1;
 }