fixed conflicts

This commit is contained in:
Sem van der Hoeven
2020-09-16 12:14:43 +02:00

View File

@@ -1,12 +1,21 @@
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);
@@ -14,7 +23,7 @@ namespace RH_Engine
WriteTextMessage(client, "{\r\n\"id\" : \"session/list\"\r\n}");
string result = ReadPrefMessage(client.GetStream());
JSONParser.Parse(result);
}
public static void WriteTextMessage(TcpClient client, string message)
@@ -48,5 +57,22 @@ namespace RH_Engine
return Encoding.UTF8.GetString(buffer);
}
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; }
}
}