/[AnywhereTS-MSSQL]/trunk/TSAdminTool/TerminalServer.cs
ViewVC logotype

Contents of /trunk/TSAdminTool/TerminalServer.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations) (download)
Wed Jul 11 14:19:13 2012 UTC (7 years, 10 months ago) by william
File size: 1202 byte(s)
imported from https://anywherets.svn.sourceforge.net/svnroot/anywherets/trunk/
Revision: 1
Author: beartown
Date: 3:10:40 AM, Monday, June 21, 2010
Message:
First upload. Still todo in order to get a fully working product: Replace Thinstation images with vanilla Thinstation, modify ImageDesigntimeConfig.cs, ImageRuntimeConfig.cs in order to support the Thinstation image
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace AnywhereTS
6 { // Represents a terminal server
7 public class AtsTerminalServer
8 {
9 public bool Online; // true = terminal server is online, false = terminal server is offline
10 public string strError; // Error string if the terminal server is offline.
11 public string networkPath; // The network path to the terminal server
12 public SessionList Session = new SessionList();
13
14
15 // Update the terminal server and session data
16 public void Update()
17 {
18 Online = false;
19 try
20 {
21 strError = TSManager.ListSessions(Session, networkPath);
22 if (strError.Length == 0)
23 { // Getting sessions went ok
24 Online = true;
25 // Sort the sessions
26 Session.Sort();
27 }
28 }
29 catch
30 {
31 strError = "Could not connect to terminal server '" + networkPath + "'.";
32 }
33 }
34 } // Class AtsTerminalServer
35 } // Namespace AnywhereTS

  ViewVC Help
Powered by ViewVC 1.1.22