Rev 1968 | Rev 2162 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1968 | Rev 2083 | ||
|---|---|---|---|
| Line 13... | Line 13... | ||
| 13 | function Node_OnChange(node_id, available) |
13 | function Node_OnChange(node_id, available) |
| 14 | { |
14 | { |
| 15 | if (node_id == Node_ResetNodeId && available) |
15 | if (node_id == Node_ResetNodeId && available) |
| 16 | { |
16 | { |
| 17 | Console_LogToClient(Node_ResetClientId, "\033[32m" + Node_ResetNodeId + " started okay.\033[0m\n"); |
17 | Console_LogToClient(Node_ResetClientId, "\033[32m" + Node_ResetNodeId + " started okay.\033[0m\n"); |
| - | 18 | ||
| - | 19 | Console_NewConnection(Node_ResetClientId); // This is a ugly hack for a bad design for multiusers |
|
| 18 | Node_ResetNodeId = null; |
20 | Node_ResetNodeId = null; |
| 19 | Node_ResetClientId = null; |
21 | Node_ResetClientId = null; |
| 20 | Console_SetDefaultPrompt(); |
- | |
| 21 | } |
22 | } |
| 22 | 23 | ||
| 23 | if (node_id == Node_ProgramNodeId && available) |
24 | if (node_id == Node_ProgramNodeId && available) |
| 24 | { |
25 | { |
| 25 | Console_LogToClient(Node_ProgramClientId, "\033[32m" + Node_ProgramNodeId + " started okay.\033[0m\n"); |
26 | Console_LogToClient(Node_ProgramClientId, "\033[32m" + Node_ProgramNodeId + " started okay.\033[0m\n"); |
| - | 27 | ||
| - | 28 | Console_NewConnection(Node_ProgramClientId); // This is a ugly hack for a bad design for multiusers |
|
| 26 | Node_ProgramNodeId = null; |
29 | Node_ProgramNodeId = null; |
| 27 | Node_ProgramClientId = null; |
30 | Node_ProgramClientId = null; |
| 28 | Console_SetDefaultPrompt(); |
- | |
| 29 | } |
31 | } |
| 30 | 32 | ||
| 31 | if (Node_WaitClientId != null && available) |
33 | if (Node_WaitClientId != null && available) |
| 32 | { |
34 | { |
| 33 | var result = NodeExport_GetNodeInformation(node_id); |
35 | var result = NodeExport_GetNodeInformation(node_id); |
| Line 45... | Line 47... | ||
| 45 | Console_LogToClient(Node_WaitClientId, "Bios Version: " + result["BiosVersion"] + "\n"); |
47 | Console_LogToClient(Node_WaitClientId, "Bios Version: " + result["BiosVersion"] + "\n"); |
| 46 | Console_LogToClient(Node_WaitClientId, "Device Type: " + result["DeviceType"] + "\n"); |
48 | Console_LogToClient(Node_WaitClientId, "Device Type: " + result["DeviceType"] + "\n"); |
| 47 | Console_LogToClient(Node_WaitClientId, "Has Application: " + result["HasApplication"] + "\n"); |
49 | Console_LogToClient(Node_WaitClientId, "Has Application: " + result["HasApplication"] + "\n"); |
| 48 | Console_LogToClient(Node_WaitClientId, "Last Active: " + date.toString() + "\n"); |
50 | Console_LogToClient(Node_WaitClientId, "Last Active: " + date.toString() + "\n"); |
| 49 | 51 | ||
| - | 52 | Console_NewConnection(Node_WaitClientId); // This is a ugly hack for a bad design for multiusers |
|
| 50 | Node_WaitClientId = null; |
53 | Node_WaitClientId = null; |
| 51 | Console_SetDefaultPrompt(); |
- | |
| 52 | } |
54 | } |
| 53 | } |
55 | } |
| 54 | 56 | ||
| 55 | function Node_GetAvailableIds() |
57 | function Node_GetAvailableIds() |
| 56 | { |
58 | { |