From 758fef325e9a9ff8d6bd9a734feba2301e318efb Mon Sep 17 00:00:00 2001 From: shinichi Date: Wed, 16 Sep 2020 12:11:30 +0200 Subject: [PATCH] added PC struct --- RH-Engine/Program.cs | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/RH-Engine/Program.cs b/RH-Engine/Program.cs index 71318b2..12323ab 100644 --- a/RH-Engine/Program.cs +++ b/RH-Engine/Program.cs @@ -1,19 +1,28 @@ using System; using System.IO; using System.Net.Sockets; +using System.Runtime.Intrinsics.X86; using System.Text; namespace RH_Engine { + internal class Program { + private static PC[] PCs = { + new PC("DESKTOP-M2CIH87", "Fabian"), + new PC("T470S", "Shinichi"), + new PC("NA", "Sem"), + new PC("NA", "Wouter"), + new PC("NA", "Ralf"), + new PC("NA", "Bart") }; private static void Main(string[] args) { TcpClient client = new TcpClient("145.48.6.10", 6666); WriteTextMessage(client, "{\r\n\"id\" : \"session/list\"\r\n}"); ReadPrefMessage(client.GetStream()); - + } public static void WriteTextMessage(TcpClient client, string message) @@ -47,5 +56,22 @@ namespace RH_Engine return Encoding.ASCII.GetString(buffer, 0, totalRead); } + + private static void CreateTunnel() + { + + } + } + + + public readonly struct PC + { + public PC(string host, string user) + { + this.host = host; + this.user = user; + } + public string host { get; } + public string user { get; } } } \ No newline at end of file