Пример #1
0
        private void connected(object sender, EventArgs e)
        {
            Device device = (Device)sender;

            connectedDevices.Add(device);

            bool sshReady = deviceListener.connectToPort(device, 22) != -1;

            devicesView.connected(device, sshReady);
        }
Пример #2
0
        public void openConnection(Device device)
        {
            int port = deviceListener.connectToPort(device, 22);

            Console.WriteLine("Listening port is " + port);
        }