From 5916ccedb39e33e9b3b3d51367a040245de70906 Mon Sep 17 00:00:00 2001 From: szporowolik Date: Fri, 4 Oct 2019 14:43:43 +0200 Subject: [PATCH] Debug only - check performance --- 02_Windows_App/Perun_v1/01_Classes/TCPController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02_Windows_App/Perun_v1/01_Classes/TCPController.cs b/02_Windows_App/Perun_v1/01_Classes/TCPController.cs index 96695c4..7c682a8 100644 --- a/02_Windows_App/Perun_v1/01_Classes/TCPController.cs +++ b/02_Windows_App/Perun_v1/01_Classes/TCPController.cs @@ -64,7 +64,8 @@ public class TCPController Console.WriteLine("TCP: Waiting for packet"); tcpClient = tcpServer.AcceptTcpClient(); //if a connection exists, the server will accept it ns = tcpClient.GetStream(); //networkstream is used to send/receive messages - + //ns.ReadTimeout = 100; + while (tcpClient.Connected && !bDone) //while the client is connected, we look for incoming messages { StringBuilder CompleteMessage = new StringBuilder();