From 97220b7f99180bc0c4483e6f4e91d948105ff50e Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 11 Mar 2023 15:11:32 +0200 Subject: [PATCH] Client - Added some missing comments --- source/birchwood/client/client.d | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index c6888b1..5d358fe 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -28,21 +28,28 @@ __gshared static this() // ... which logs outputs for the `onX()` handler functions public class Client : Thread { - /* Connection information */ + /** + * Connection information + */ private ConnectionInfo connInfo; /* TODO: We should learn some info in here (or do we put it in connInfo)? */ private string serverName; //TODO: Make use of - + /** + * Underlying connection to the server + */ package Socket socket; - + /** + * Receive queue and send queue managers + */ private ReceiverThread receiver; private SenderThread sender; - - /* Event engine */ + /** + * Eventy event engine + */ package Engine engine; package bool running = false; @@ -578,6 +585,10 @@ public class Client : Thread // * they have ensured a waiting-pipe pair for // * libsnooze exists) // */ + + /** + * Start the receive queue and send queue managers + */ this.receiver.start(); this.sender.start(); // while(!receiver.isReady() || !sender.isReady()) {}