From b5e1b4065f9218f1d8149507b8aeec66919cd0f6 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 9 Mar 2023 15:40:20 +0200 Subject: [PATCH] Client - Added TODOs Exceptions - Added TODO --- source/birchwood/client/client.d | 8 ++++++++ source/birchwood/client/exceptions.d | 1 + 2 files changed, 9 insertions(+) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index ae17a96..4fe0dcf 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -105,6 +105,12 @@ public class Client : Thread { super(&loop); this.connInfo = connInfo; + + /** + * Setups the receiver and sender queue managers + */ + this.receiver = new ReceiverThread(this); + this.sender = new SenderThread(this); } ~this() @@ -659,6 +665,7 @@ public class Client : Thread /* Lock queue */ recvQueueLock.lock(); + // TODO: Update the below to call `receiver.newRecv()` /* Add to queue */ recvQueue.insertAfter(recvQueue[], message); @@ -864,6 +871,7 @@ public class Client : Thread /* Lock queue */ sendQueueLock.lock(); + // TODO: Update the below to call `sender.newSend()` /* Add to queue */ sendQueue.insertAfter(sendQueue[], encodedMessage); diff --git a/source/birchwood/client/exceptions.d b/source/birchwood/client/exceptions.d index fd0c088..816e154 100644 --- a/source/birchwood/client/exceptions.d +++ b/source/birchwood/client/exceptions.d @@ -4,6 +4,7 @@ import std.conv : to; public class BirchwoodException : Exception { + // TODO: Move outside one level public enum ErrorType { INVALID_CONN_INFO,