/** * Instantiate RDP and Thread */ public RdpClient() { port = 3389; hostname = "localhost"; username = "******"; domain = ""; password = ""; rdp = new RDP(); thread = new Thread(() => ThreadProc(rdp)); }
/** * Instantiate RDP and Thread */ public RdpSource(ISource iSource) { port = 3389; hostname = "localhost"; username = "******"; domain = ""; password = ""; rdp = new RDP(); this.iSource = iSource; thread = new Thread(() => ThreadProc(rdp)); }
static void ThreadProc(RDP rdp) { while (procRunning) { rdp.CheckFileDescriptor(); Thread.Sleep(10); } }
/** * Instantiate RDP and Thread */ public RdpClient() { rdp = new RDP(); thread = new Thread(() => ThreadProc(rdp)); }