connected engine to client

This commit is contained in:
Sem van der Hoeven
2020-09-30 12:23:53 +02:00
parent 3ca3c1ad78
commit 0dc4bb6fad
3 changed files with 8 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using ProftaakRH;
namespace Client
@@ -27,7 +28,12 @@ namespace Client
this.client = new TcpClient();
this.connected = false;
client.BeginConnect(adress, port, new AsyncCallback(OnConnect), null);
initEngine();
}
private void initEngine()
{
engineConnection = EngineConnection.INSTANCE;
engineConnection.Connect();

View File

@@ -83,7 +83,7 @@ namespace Client
// wait until we have a tunnel id
while (tunnelId == string.Empty) { }
Write("got tunnel id! sending commands...");
Write("got tunnel id! " + tunnelId);
}
/// <summary>

View File

@@ -36,7 +36,7 @@ namespace RH_Engine
{
if (d.clientinfo.host == pc.host && d.clientinfo.user == pc.user)
{
Console.WriteLine("connecting to {0}, on {1} with id {2}", pc.user, pc.host, d.id);
Console.WriteLine("[JSONPARSER] connecting to {0}, on {1} with id {2}", pc.user, pc.host, d.id);
return d.id;
}
}