From 3b70e22dae0ac2fd4f3eb4ed4c46343476a78e33 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Fri, 24 Mar 2023 16:36:54 +0100 Subject: [PATCH] Updated the readme to include a reference to the extension I use. Also changed a logging type to be more user-friendly. --- README.md | 3 +++ Server/WindowServer.cs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 359270a..c41e297 100644 --- a/README.md +++ b/README.md @@ -52,5 +52,8 @@ Example usage: `Server.exe --listen 0.0.0.0:10063`, `Server.exe --listen 0.0.0.0 ## Contributing ANY contribution is welcome! No need to worry about correctly formatting an issue or similar. +### Extensions +If you plan on contributing to anything related to connecting the applications, or something related to after a connection has been initiated, then this extension is very useful: [Switchstartup Projects](https://heptapod.host/thirteen/switchstartupproject/). The project contains a configuration for it, that lets you debug both the server and the client at the same time, and start them with parameters, as opposed to having to connect them manually. + ## License WindowStreamer is released under the GPL-3.0 License. See the LICENSE file for details. \ No newline at end of file diff --git a/Server/WindowServer.cs b/Server/WindowServer.cs index 0daeae1..74fb260 100644 --- a/Server/WindowServer.cs +++ b/Server/WindowServer.cs @@ -147,6 +147,8 @@ public async Task StartServerAsync() } while (!await HandshakeAsync(reply)); + Log.Information("Stream established"); + metastreamToken = new CancellationTokenSource(); metastreamTask = Task.Run(MetastreamLoop); } @@ -293,7 +295,7 @@ async void BeginStreamLoop() return; } - Log.Information($"Obtain image: {obtainImageSw.ElapsedMilliseconds} ms, convert image: {convertPictureSw.ElapsedMilliseconds} ms"); + Log.Debug($"Obtain image: {obtainImageSw.ElapsedMilliseconds} ms, convert image: {convertPictureSw.ElapsedMilliseconds} ms"); try {